From 2edfea478fde9ea62bb860c08d2378f394b434ee Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Wed, 16 Jul 2025 08:31:45 +0200 Subject: [PATCH] plugin: volume_export: don't allow export of external snapshots not yet implemented Signed-off-by: Alexandre Derumier --- src/PVE/Storage/Plugin.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm index aee145f..06d258e 100644 --- a/src/PVE/Storage/Plugin.pm +++ b/src/PVE/Storage/Plugin.pm @@ -2010,6 +2010,9 @@ sub volume_export { my ($class, $scfg, $storeid, $fh, $volname, $format, $snapshot, $base_snapshot, $with_snapshots) = @_; + die "cannot export volumes together with their snapshots in $class\n" + if $with_snapshots && $scfg->{'external-snapshots'}; + my $err_msg = "volume export format $format not available for $class\n"; if ($scfg->{path} && !defined($snapshot) && !defined($base_snapshot)) { my ($file) = $class->path($scfg, $volname, $storeid) or die $err_msg;