Don't remove and recreate lun when changing a volume
It's not needed, LIO sees the new size automatically. And it was broken anyway. Partially fix #2335 Signed-off-by: Daniel Berteaud <daniel@firewall-services.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
80699b1da5
commit
525ed353dc
@ -322,14 +322,8 @@ my $import_lun = sub {
|
||||
# needed for example when the underlying ZFS volume has been resized
|
||||
my $modify_lun = sub {
|
||||
my ($scfg, $timeout, $method, @params) = @_;
|
||||
my $msg;
|
||||
|
||||
$msg = $delete_lun->($scfg, $timeout, $method, @params);
|
||||
if ($msg) {
|
||||
$msg = $create_lun->($scfg, $timeout, $method, @params);
|
||||
}
|
||||
|
||||
return $msg;
|
||||
# Nothing to do on volume modification for LIO
|
||||
return undef;
|
||||
};
|
||||
|
||||
my $add_view = sub {
|
||||
|
||||
Reference in New Issue
Block a user