]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage/LunCmd/LIO.pm
Don't remove and recreate lun when changing a volume
[pve-storage.git] / PVE / Storage / LunCmd / LIO.pm
index e0fac82e78e7a6e234bc267ed2cd66289274dfc3..1ddc02d4f58780fa726e874cfc0e535c4e57c3b6 100644 (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 {