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:
		@@ -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"];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user