check base image use count inside vdisk_free
To make it work with all storage types.
This commit is contained in:
@ -235,7 +235,7 @@ sub alloc_image {
|
||||
}
|
||||
|
||||
sub free_image {
|
||||
my ($class, $storeid, $scfg, $volname) = @_;
|
||||
my ($class, $storeid, $scfg, $volname, $isBase) = @_;
|
||||
|
||||
my $cmd = &$rbd_cmd($scfg, $storeid, 'snap', 'purge', $volname);
|
||||
run_command($cmd, errmsg => "rbd snap purge $volname' error", outfunc => sub {}, errfunc => sub {});
|
||||
|
||||
Reference in New Issue
Block a user