]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC/Config.pm
add fsfreeze helper:
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 6 Nov 2020 14:19:41 +0000 (15:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Nov 2020 17:59:07 +0000 (18:59 +0100)
commit40cd2e8941bebd8c0e56c1eed3b0435d6f3207b1
treef295f3237c066f28f1cfa11d557c3a8d2b983147
parent4160e22dafb7982bdf595def55bcfd8d45e3ee80
add fsfreeze helper:

fsfreeze_mountpoint issues the same ioctls as fsfreeze(8) on the provided
directory (the $thaw parameter deciding between '--freeze' and '--unfreeze')

This is used for container backups on RBD, where snapshots on containers,
which are heavy on IO, are not mountable readonly, because the ext4 is not
consistent.

Needed to fix #2991 and #2528.

The ioctl numbers were found via strace -X verbose (and verified with the
kernel documentation).

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PVE/LXC/Config.pm