]> git.proxmox.com Git - pve-container.git/commit
LXC: use Tools::df for get_container_disk_usage
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 30 Oct 2015 08:50:27 +0000 (09:50 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 30 Oct 2015 09:28:16 +0000 (10:28 +0100)
commit7ca58f8d2d231af52a2b5113c6f7749494c4156d
tree3344ca60d4ac21555994cc661b2388cc5335ca32
parent1e7270cde4533dd37c1fc7e08479711506907e1f
LXC: use Tools::df for get_container_disk_usage

Run df on /proc/$pid/root instead of attaching to the
container and running its contained 'df' binary, as this
could create freezed processes of the container is frozen.

Also, since the container PIDs are now used in both loops
they're precached beforehand.

Fixes #793
src/PVE/LXC.pm