my $path = $class->filesystem_path($scfg, $volname);
+ if ($isBase) {
+ # try to remove immutable flag
+ eval { run_command(['/usr/bin/chattr', '-i', $path]); };
+ warn $@ if $@;
+ }
+
if (defined($format) && ($format eq 'subvol')) {
File::Path::remove_tree($path);
} else {
return undef;
}
- if ($isBase) {
- # try to remove immutable flag
- eval { run_command(['/usr/bin/chattr', '-i', $path]); };
- warn $@ if $@;
- }
-
unlink($path) || die "unlink '$path' failed - $!\n";
}
return undef;
}
+sub volume_send {
+ my ($class, $scfg, $storeid, $volname, $ip, $snap,
+ $incremental_snap, $verbose, $limit, $target_path) = @_;
+
+ # implement in subclass
+ die "Volume_send is not implemented for $class";
+}
+
sub volume_rollback_is_possible {
my ($class, $scfg, $storeid, $volname, $snap) = @_;