zfsdir: implement free_image
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
cc80ed9c00
commit
e9565df58e
@ -174,6 +174,16 @@ sub alloc_image {
|
||||
return $name;
|
||||
}
|
||||
|
||||
sub free_image {
|
||||
my ($class, $storeid, $scfg, $volname, $isBase) = @_;
|
||||
|
||||
my (undef, $name, undef) = $class->parse_volname($volname);
|
||||
|
||||
$class->zfs_delete_zvol($scfg, $name);
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
sub zfs_get_pool_stats {
|
||||
my ($class, $scfg) = @_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user