[pve-devel] [PATCH 5/8] ISCSIDirect : volume_resize

Alexandre Derumier aderumier at odiso.com
Mon Aug 6 11:57:30 CEST 2012


die as we can't resize scsi device plugins

Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/ISCSIDirectPlugin.pm |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm
index 322de52..82c6879 100644
--- a/PVE/Storage/ISCSIDirectPlugin.pm
+++ b/PVE/Storage/ISCSIDirectPlugin.pm
@@ -188,4 +188,9 @@ sub volume_size_info {
     return $info->{size};
 }
 
+sub volume_resize {
+    my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
+    die "volume resize is not possible on iscsi device";
+}
+
 1;
-- 
1.7.2.5




More information about the pve-devel mailing list