vzlist: fix showing disk usage for some CTs
In case a simfs container is not running but mounted (and quota is enabled
for it), its diskspace/diskinodes usage is well known from /proc/vz/vzquota.
In case of ploop container, its diskspace/diskinodes usage is always known
(for umounted case from the cached .statfs file saved during umount,
otherwise from statfs call).
The fix to show usage for such cases is available in commit de32e5472,
but when I was porting the JSON patch (commit fc6386d) I screwed it up.
Fix it back, essentially by porting de32e5472 to currect code base.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed