From 5cd9d7a0527ecb8de819fef7c6e04a53dac0eecd Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 30 Jul 2008 18:48:31 +0000 Subject: [PATCH] -Fix bug where iSCSI would make increasingly small disks for a noderange git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1966 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/iscsi.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/iscsi.pm b/xCAT-server/lib/xcat/plugins/iscsi.pm index eb9bc93c2..f8d84f818 100644 --- a/xCAT-server/lib/xcat/plugins/iscsi.pm +++ b/xCAT-server/lib/xcat/plugins/iscsi.pm @@ -114,6 +114,7 @@ sub process_request { %rsp=(name=>[$node]); $lunsize -= 1; my $rc = system("dd if=/dev/zero of=$fileloc bs=1M count=1 seek=$lunsize"); + $lunsize += 1; if ($rc) { $rsp{error}=["dd process exited with return code $rc"]; $rsp{errorcode} = [1];