-setupiscsidev creates iscsi directory if it doesn't exist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
package xCAT_plugin::iscsi;
 | 
			
		||||
use xCAT::Table;
 | 
			
		||||
use Socket;
 | 
			
		||||
use File::Path;
 | 
			
		||||
use Getopt::Long;
 | 
			
		||||
Getopt::Long::Configure("bundling");
 | 
			
		||||
Getopt::Long::Configure("pass_through");
 | 
			
		||||
@@ -81,6 +82,9 @@ sub process_request {
 | 
			
		||||
            $callback->({error=>["$node: Unable to identify file to back iSCSI LUN, no iscsidir in site table nor iscsi.file entry for node"],errorcode=>[1]});
 | 
			
		||||
            next;
 | 
			
		||||
         }
 | 
			
		||||
         unless (-d $iscsiprefix) {
 | 
			
		||||
            mkpath $iscsiprefix;
 | 
			
		||||
         }
 | 
			
		||||
         $fileloc = "$iscsiprefix/$node";
 | 
			
		||||
         $iscsitab->setNodeAttribs($node,{file=>$fileloc});
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user