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:
committed by
Dietmar Maurer
parent
097a2b2fcf
commit
c8943a85c9
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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'");
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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};
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user