From d4c63dc1478376bc655eea457e2a27bcbf337c37 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Fri, 23 Jan 2015 10:32:43 +0100 Subject: [PATCH] zfs: move code move activate_volume deactivate_volume from ZFSPlugin to ZFSDirPlugin Signed-off-by: Wolfgang Link --- 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 e5145c3..4e39488 100644 --- a/PVE/Storage/ZFSDirPlugin.pm +++ b/PVE/Storage/ZFSDirPlugin.pm @@ -388,5 +388,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 9bc1c83..f7a061c 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) = @_;