]> git.proxmox.com Git - pve-storage.git/commit
add check for fsfreeze before snapshot
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 6 Nov 2020 14:19:40 +0000 (15:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Nov 2020 17:58:45 +0000 (18:58 +0100)
commit2c036838ed1747dabee1d2c79621c7d398d24c50
treec1da749cdf8fbb565915ca5894dcdfa3711a9540
parentaf2dd59eafdc5f7c11234030b25f1b1e8ed6184e
add check for fsfreeze before snapshot

In order to take a snapshot of a container volume, which can be mounted
read-only with RBD, the volume needs to be frozen (fsfreeze (8)) before taking
the snapshot.

This commit adds helpers to determine if the FIFREEZE ioctl needs to be called
for the volume.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Storage.pm
PVE/Storage/Plugin.pm
PVE/Storage/RBDPlugin.pm