The current implementation from my fork uses both outputs from df -h and mount to get disk information.
On OpenVZ the output of the proxy filesystem partitions does not use the same naming scheme for both these commands. The current key in use for the dictionary uses the device name from df -h, e.g. /dev/sda1, which won't match the output of the same partition in mount.
The proposal is to use the mounting location as the key, which would allow us to maintain information from both df -h and mount which an identifier that is unique to both.
The current implementation from my fork uses both outputs from
df -h
andmount
to get disk information.On OpenVZ the output of the proxy filesystem partitions does not use the same naming scheme for both these commands. The current key in use for the dictionary uses the device name from
df -h
, e.g./dev/sda1
, which won't match the output of the same partition inmount
.The proposal is to use the mounting location as the key, which would allow us to maintain information from both
df -h
andmount
which an identifier that is unique to both.The resulting dict would instead be:
If this works for you let me know.