Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OVA generation #102

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Fix OVA generation #102

merged 1 commit into from
Dec 16, 2024

Conversation

machacekondra
Copy link
Collaborator

  • Flush after last header
  • rename the VM to MigrationAssessment
  • Send Content-Type and Content-length headers

size := blockSize

// Size of the file content, rounded up to nearest 512 bytes
size += (contentSize + blockSize - 1) / blockSize * blockSize
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't / blockSize * blockSize = 1

Copy link
Collaborator Author

@machacekondra machacekondra Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand. It could be =1. But only in case contentSize + blockSize - 1 = 262144.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I know hat you mean. I should do:
((contentSize + blockSize - 1) / blockSize) * blockSize
to make it clear

- Flush after last header
- rename the VM to MigrationAssessment
- Send Content-Type and Content-length headers

Signed-off-by: Ondra Machacek <[email protected]>
@machacekondra machacekondra merged commit be8b922 into kubev2v:main Dec 16, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants