plugin: volume_export: don't allow export of external snapshots
not yet implemented Signed-off-by: Alexandre Derumier <alexandre.derumier@groupe-cyllene.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
b61e564606
commit
2edfea478f
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user