]> git.proxmox.com Git - pve-container.git/commit
fix #1607: implement pct fstrim
authorOguz Bektas <o.bektas@proxmox.com>
Thu, 28 Mar 2019 13:01:44 +0000 (14:01 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2019 13:05:00 +0000 (14:05 +0100)
commite08ac1a030138ffe15a3f68e96364570ff180171
tree254029bbe210b8da0f4d4e0b75b9f0b4f82dd551
parent74367edd4561528672b35a0918f73a9b9b000bff
fix #1607: implement pct fstrim

runs fstrim on the rootfs and all mountpoints of a given container. this
works for both running and stopped containers.

lock the CT during this operation using a config lock as it is
potentially long running. While fstrim itself wouldn't really need
the lock, as multiple parallel fstrim calls can be made without
problems, we want to forbid migrations during it and want to avoid
that we unmount a with the CT mounted with 'mount' lock (race) -
while we could handle and allow this its just not needed and easier
this way

Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/CLI/pct.pm