remove non used parameter exclusive

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.
This commit is contained in:
Wolfgang Link
2015-09-16 13:11:18 +02:00
committed by Dietmar Maurer
parent 097a2b2fcf
commit c8943a85c9
9 changed files with 16 additions and 16 deletions

View File

@ -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);
}
}

View 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);

View 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
}

View 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;
}

View 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'");

View 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);

View 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};

View 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;
}

View 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;
}