Fix off-by-one size error in iSCSI device setup.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@893 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-03-26 13:17:16 +00:00
parent 598477f4bc
commit 1d56a04303

View File

@ -109,6 +109,7 @@ sub process_request {
$rsp{data}=["Creating $fileloc ($lunsize MB)"];
$callback->({node=>[\%rsp]});
%rsp=(name=>[$node]);
$lunsize -= 1;
my $rc = system("dd if=/dev/zero of=$fileloc bs=1M count=1 seek=$lunsize");
if ($rc) {
$rsp{error}=["dd process exited with return code $rc"];