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>
This commit is contained in:
Stoiko Ivanov
2020-11-06 15:19:40 +01:00
committed by Thomas Lamprecht
parent af2dd59eaf
commit 2c036838ed
3 changed files with 23 additions and 2 deletions

View File

@ -888,6 +888,10 @@ sub volume_snapshot_delete {
return undef;
}
sub volume_snapshot_needs_fsfreeze {
return 0;
}
sub storage_can_replicate {
my ($class, $scfg, $storeid, $format) = @_;