]> git.proxmox.com Git - pve-container.git/commit
don't leave fstrim lock if mount_all fails
authorOguz Bektas <o.bektas@proxmox.com>
Mon, 26 Aug 2019 14:06:32 +0000 (16:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Aug 2019 07:43:45 +0000 (09:43 +0200)
commita179d3a7390beef3bfa6e61572034a0a7d237d6e
tree972f27217fd65371e083d26af3509a1a184a7d0f
parent9b940fef409e443713cf8ae3ca4f42f75f756f9e
don't leave fstrim lock if mount_all fails

when a container has a mountpoint which can't be mounted for some
reason, mount_all dies and the fstrim lock stays. prevent this by
moving the call into eval, warn if any error occurs.

Still try to unmount all already mounted MPs so that nothing blocking
remains left.

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