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

[12.0-stable] stat st_blocks block size read from DEV_BSIZE #4604

Merged

Conversation

andrewd-zededa
Copy link
Contributor

From POSIX standard:
Traditionally, some implementations defined
the multiplier for st_blocks in <sys/param.h>
as the symbol DEV_BSIZE.

Don't use stat.Blksize which can return 4k
and overinflate sizes.

Added pillar gotest TestStatAllocatedBytes

Signed-off-by: Andrew Durbin [email protected]
(cherry picked from commit 56a26d9)

Backport of #4596

From POSIX standard:
Traditionally, some implementations defined
the multiplier for st_blocks in <sys/param.h>
as the symbol DEV_BSIZE.

Don't use stat.Blksize which can return 4k
and overinflate sizes.

Added pillar gotest TestStatAllocatedBytes

Signed-off-by: Andrew Durbin <[email protected]>
(cherry picked from commit 56a26d9)
@OhmSpectator OhmSpectator changed the title stat st_blocks block size read from DEV_BSIZE [12.0-stable] stat st_blocks block size read from DEV_BSIZE Feb 10, 2025
@andrewd-zededa
Copy link
Contributor Author

This backport seems to be having issues with the C import, looking into it.

@OhmSpectator
Copy link
Member

This backport seems to be having issues with the C import, looking into it.

"Go moves in a mysterious way" (с)

@OhmSpectator
Copy link
Member

Actually, the errors I noticed on the PR build were related to the pull limits again, so I have restarted the tests.

@eriknordmark
Copy link
Contributor

The virtualization test fails in TestVcomLinkTpmRequestEK but vcom is not present in 12.0-stable. @uncleDecart @shjala do we need to create a separate version of Eden for 12.0-stable?

@eriknordmark eriknordmark merged commit 58617dd into lf-edge:12.0-stable Feb 12, 2025
30 of 32 checks passed
@shjala
Copy link
Member

shjala commented Feb 12, 2025

The virtualization test fails in TestVcomLinkTpmRequestEK but vcom is not present in 12.0-stable. @uncleDecart @shjala do we need to create a separate version of Eden for 12.0-stable?

I think so, I'll sync with Pavel.

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.

4 participants