zfs: move code
move activate_volume deactivate_volume from ZFSPlugin to ZFSDirPlugin Signed-off-by: Wolfgang Link <w.link@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
f3e632d073
commit
d4c63dc147
@ -388,5 +388,14 @@ sub volume_snapshot_delete {
|
|||||||
$class->zfs_request($scfg, undef, 'destroy', "$scfg->{pool}/$volname\@$snap");
|
$class->zfs_request($scfg, undef, 'destroy', "$scfg->{pool}/$volname\@$snap");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub activate_volume {
|
||||||
|
my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub deactivate_volume {
|
||||||
|
my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|||||||
@ -311,16 +311,6 @@ sub deactivate_storage {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub activate_volume {
|
|
||||||
my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub deactivate_volume {
|
|
||||||
my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub volume_resize {
|
sub volume_resize {
|
||||||
my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
|
my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user