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

Add method to override the images sector size #222

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

julien-massot
Copy link

The sector size is added at drive level, so it's correctly reported by the kernel, allowing userland software to works without overriding the values. UML backend doesn't support alternate sector size since the ubd driver hardcode the 512 bytes sector size. (arch/um/drivers/ubd_kern.c)

@sjoerdsimons
Copy link
Member

Would be great to have a test as well, but that can come later

@julien-massot julien-massot force-pushed the main branch 3 times, most recently from 481bf33 to 89bdc3e Compare February 17, 2025 10:26
@julien-massot
Copy link
Author

Would be great to have a test as well, but that can come later

I have a patch to add the test, I will push it after this one.

@obbardc obbardc added this to the v0.0.9 milestone Feb 18, 2025
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 18, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 18, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 18, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 19, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 19, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
@sjoerdsimons
Copy link
Member

@julien-massot can you post your test patch to this PR?

@julien-massot
Copy link
Author

@julien-massot can you post your test patch to this PR?

@sjoerdsimons sure, it's posted.

Julien Massot added 3 commits February 24, 2025 13:39
The sector size is added at drive level, so it's correctly reported
by the kernel, allowing userland software to works without overriding
the values. UML backend doesn't support alternate sector size
since the ubd driver hardcode the 512 bytes sector size.
(arch/um/drivers/ubd_kern.c)

Signed-off-by: Julien Massot <[email protected]>
We now support a SetSectorSize method, add a test for the two
common values 512 and 4096.

The test start a machine with a given sector size and verify that
the block device correctly reports the physical and logical sizes.

Skip 4k sector size test on UML backend since it's not supported.

Signed-off-by: Julien Massot <[email protected]>
4k sector size testing is intentionnally skipped for the UML
backend. Then it should not be considered as a ci failure.

Signed-off-by: Julien Massot <[email protected]>
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 25, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 25, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
@sjoerdsimons sjoerdsimons added this pull request to the merge queue Feb 25, 2025
Merged via the queue into go-debos:main with commit b41755e Feb 25, 2025
11 checks passed
julien-massot pushed a commit to julien-massot/debos that referenced this pull request Feb 26, 2025
Will remove when go-debos/fakemachine#222
is done.

Signed-off-by: Julien Massot <[email protected]>
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.

3 participants