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 disk "Used" value #1467

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

martinpitt
Copy link
Member

Showing "allocation" in the UI doesn't make much sense. According to the manpage [1] it describes "offset of highest written sector in bytes". Showing the "physical size of source file in bytes" is much more useful.

Thanks to @shodanshok for figuring this out!

Fixes #1423

[1] https://www.libvirt.org/manpages/virsh.html


This was one of these "looks like a quick fix" issues, but it's not -- this is definitively not working yet, but I want to see if we get a more meaningful test failure than just the unexpected "error: input is not a number" -- i.e. where we cover this.

Showing "allocation" in the UI doesn't make much sense. According to
the manpage [1] it describes "offset of highest written sector in
bytes". Showing the "physical size of source file in bytes" is much more
useful.

Thanks to @shodanshok for figuring this out!

Fixes cockpit-project#1423

[1] https://www.libvirt.org/manpages/virsh.html
@martinpitt
Copy link
Member Author

Yeah, nothing -- so we definitively need a proper test case for "Used" for both running and stopped machines first. That value isn't very predictable, but at least a plausible range should be tested that guards us against undefined/NaN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong USED disk space reported
1 participant