]> git.proxmox.com Git - pve-storage.git/commitdiff
remove non used parameter exclusive
authorWolfgang Link <w.link@proxmox.com>
Wed, 16 Sep 2015 11:11:18 +0000 (13:11 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 17 Sep 2015 10:37:27 +0000 (12:37 +0200)
This makes no sense because it should always be exclusive.
Also RDB checks it self.
LVM has not possibility to use lvchange.
DRBD is this feature not implemented.

PVE/Storage.pm
PVE/Storage/DRBDPlugin.pm
PVE/Storage/GlusterfsPlugin.pm
PVE/Storage/ISCSIDirectPlugin.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/Plugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/SheepdogPlugin.pm
PVE/Storage/ZFSPoolPlugin.pm

index 927219ab878fd99287973c5cccece722eb80eb40..7622b1a53634719853d05772c537deeda2ed15bd 100755 (executable)
@@ -831,7 +831,7 @@ sub deactivate_storage {
 }
 
 sub activate_volumes {
-    my ($cfg, $vollist, $exclusive) = @_;
+    my ($cfg, $vollist) = @_;
 
     return if !($vollist && scalar(@$vollist));
 
@@ -849,7 +849,7 @@ sub activate_volumes {
        my ($storeid, $volname) = parse_volume_id($volid);
        my $scfg = storage_config($cfg, $storeid);
        my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
-       $plugin->activate_volume($storeid, $scfg, $volname, $exclusive, $cache);
+       $plugin->activate_volume($storeid, $scfg, $volname, $cache);
     }
 }
 
index 97c1ca9e25bc23c9430f2af4aa0096d497658445..c4a5ee17ddc6b82b49808b96f4dced508d408ad3 100644 (file)
@@ -296,7 +296,7 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
 
     my $path = $class->path($scfg, $volname);
     
index 6ad3a8f587d33f14f91b73199a73779b7a90c1e2..dee34c35c27b138c8d61bbe43db39db9fca5d076 100644 (file)
@@ -300,7 +300,7 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
 
     # do nothing by default
 }
index d20fbe2fa443f85b687ec55d9be8410897eb6dae..cece023fea0d5eee64228e3c59f7764bac9639eb 100644 (file)
@@ -184,12 +184,12 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
     return 1;
 }
 
 sub deactivate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
     return 1;
 }
 
index 87945a89365e52b042bde56c8d72cecea0eaa648..e59c4a9033e62e34fa38d556da0dec4227e9d963 100644 (file)
@@ -421,11 +421,11 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
-
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
+    #fix me lvmchange is not provided on
     my $path = $class->path($scfg, $volname);
 
-    my $lvm_activate_mode = $exclusive ? 'ey' : 'ly';
+    my $lvm_activate_mode = 'ey';
 
     my $cmd = ['/sbin/lvchange', "-a$lvm_activate_mode", $path];
     run_command($cmd, errmsg => "can't activate LV '$path'");
index 6741fecf2bf8690cedf7eb070e00859f608ebe8e..a2451920bdf1e37b28d2969f51f46677c551d25c 100644 (file)
@@ -831,7 +831,7 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
 
     my $path = $class->filesystem_path($scfg, $volname);
 
index 7b1ab1b5356f5984444624dfb198b2dfbb9699eb..4fe634511c37b816842dc4a5a103961b0aa22487 100644 (file)
@@ -489,7 +489,7 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
 
     return 1 if !$scfg->{krbd};
 
@@ -506,7 +506,7 @@ sub activate_volume {
 }
 
 sub deactivate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
 
     return 1 if !$scfg->{krbd};
 
index 2ffc7b7a5e36dbddbcb2cdf0cbc6df625bb45ff3..4241742e0b07be68b5cd84d8f9656b22b0f562ea 100644 (file)
@@ -345,12 +345,12 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
     return 1;
 }
 
 sub deactivate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
     return 1;
 }
 
index 75704b048fa67cd86887b16c5fa7dbf25d2afc3c..880d5042ff2b1b55d5adc81d4e24877e9e02730c 100644 (file)
@@ -505,12 +505,12 @@ sub deactivate_storage {
 }
 
 sub activate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
     return 1;
 }
 
 sub deactivate_volume {
-    my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+    my ($class, $storeid, $scfg, $volname, $cache) = @_;
     return 1;
 }