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:
Daniel Berteaud
2019-09-18 17:15:44 +02:00
committed by Thomas Lamprecht
parent 80699b1da5
commit 525ed353dc

View File

@ -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 {