move activate_volume deactivate_volume from ZFSPlugin to ZFSDirPlugin Signed-off-by: Wolfgang Link <w.l...@proxmox.com> --- PVE/Storage/ZFSDirPlugin.pm | 9 +++++++++ PVE/Storage/ZFSPlugin.pm | 10 ---------- 2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE/Storage/ZFSDirPlugin.pm index 1782c04..7086c33 100644 --- a/PVE/Storage/ZFSDirPlugin.pm +++ b/PVE/Storage/ZFSDirPlugin.pm @@ -389,5 +389,14 @@ sub volume_snapshot_delete { $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; diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm index d7d5c6c..8f4c098 100644 --- a/PVE/Storage/ZFSPlugin.pm +++ b/PVE/Storage/ZFSPlugin.pm @@ -311,16 +311,6 @@ sub deactivate_storage { 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 { my ($class, $scfg, $storeid, $volname, $size, $running) = @_; -- 1.7.10.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel