Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFix qubes.storage.get_disk_usage(self.volumes[...]) in QubesVM #1961
Comments
woju
assigned
kalkin
May 5, 2016
woju
added
C: core
task
labels
May 5, 2016
woju
added this to the Release 4.0 milestone
May 5, 2016
woju
added
the
bug
label
May 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kalkin
May 5, 2016
Member
My idea was that in future if qubes-manager or anything else want to to know the disk size/usage it should just iterate over vm.volumes and call the appropriate fields for size and usage.
I would do the following:
- remove old functions
- document that each own implementation of volume needs size and usage properties.
- Maybe remove the all the
QubesVMutilization and size methods?
|
My idea was that in future if qubes-manager or anything else want to to know the disk size/usage it should just iterate over I would do the following:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
May 5, 2016
Member
- Maybe remove the all the
QubesVMutilization and size methods?
I'd leave them there. Or simply one method - get_disk_usage - overall disk usage of this VM. This method should summarize all the VM own volumes (but not for example root volume for AppVM). Detailed information can be get from vm.storage.
As for "own" definition - I'd use volume type here - exclude read-only and snapshot volumes .
I'd leave them there. Or simply one method - As for "own" definition - I'd use volume type here - exclude read-only and snapshot volumes . |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
woju
May 5, 2016
Member
Not sure about read-only volumes, but it probably should exclude root volume from AppVM, externally attached (from qvm-block) etc. The reason is that it will be used not only by qubes-manager, but also by qvm-ls.
|
Not sure about read-only volumes, but it probably should exclude root volume from AppVM, externally attached (from |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I think this can be closed, it's an very old issue. |
woju commentedMay 5, 2016
There are three issues:
get_disk_usageis inqubes.storage.file1.1. @marmarek is not sure if this is right place, because it may be used in other places. I (@woju) am however quite sure that yes, this is the right place, but it should be documented.
self.volumesanymore