X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FStorage%2FISCSIDirectPlugin.pm;h=9777969b39e02ee03c44aca84da332b8bb56a316;hb=4cd9b85d1518a3cc84137aa3edbdc5b2c003ac48;hp=d20fbe2fa443f85b687ec55d9be8410897eb6dae;hpb=e67069eb58a2766ec31bb3932a203c71f51d9654;p=pve-storage.git diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm index d20fbe2..9777969 100644 --- a/PVE/Storage/ISCSIDirectPlugin.pm +++ b/PVE/Storage/ISCSIDirectPlugin.pm @@ -36,6 +36,7 @@ sub iscsi_ls { $list->{$storeid}->{$image} = { name => $image, size => $size * $unittobytes{$unit}, + format => 'raw', }; } }); @@ -56,7 +57,8 @@ sub type { sub plugindata { return { - content => [ {images => 1, none => 1}, { images => 1 }], + content => [ {images => 1, none => 1}, { images => 1 }], + select_existing => 1, }; } @@ -67,6 +69,7 @@ sub options { nodes => { optional => 1}, disable => { optional => 1}, content => { optional => 1}, + bwlimit => { optional => 1 }, }; } @@ -184,12 +187,18 @@ sub deactivate_storage { } sub activate_volume { - my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_; + my ($class, $storeid, $scfg, $volname, $snapname, $cache) = @_; + + die "volume snapshot is not possible on iscsi device" if $snapname; + return 1; } sub deactivate_volume { - my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_; + my ($class, $storeid, $scfg, $volname, $snapname, $cache) = @_; + + die "volume snapshot is not possible on iscsi device" if $snapname; + return 1; }