rbd : add volume_snapshot_delete
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
6000a061e9
commit
cce29bcd6b
@ -295,4 +295,14 @@ sub volume_snapshot_rollback {
|
||||
run_command($cmd, errmsg => "rbd snapshot $volname to $snap' error", errfunc => sub {});
|
||||
}
|
||||
|
||||
sub volume_snapshot_delete {
|
||||
my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
|
||||
|
||||
return 1 if $running;
|
||||
|
||||
my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'rm', '--snap', $snap, $volname);
|
||||
run_command($cmd, errmsg => "rbd snapshot $volname' error", errfunc => sub {});
|
||||
return undef;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Reference in New Issue
Block a user