mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	fixed on defect on persistent*) option
when one file/directory is copied to the persistent directory, need to check whether the parent directory exist in the persistent directory or not. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7148 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -304,6 +304,12 @@ ProcessType () { | ||||
| 			# make tree in persistent and tmpfs | ||||
|             # need to check whether the option of its parent direcotry is persistent or not | ||||
|  | ||||
|             TMPDIR=`dirname ${2}` | ||||
|             if [ ! -e ${PERSISTENT}${TMPDIR} ]; then | ||||
|                 mkdir -p ${PERSISTENT}${TMPDIR} | ||||
|                 echo "mkdir -p ${PERSISTENT}${TMPDIR}" >>$LOG | ||||
|             fi | ||||
|              | ||||
|             if [ "$isChild" = "1" ]; then | ||||
|                 num=${#PLIST[@]} | ||||
|                 for ((i=0;i<$num; i++)); do | ||||
|   | ||||
| @@ -303,6 +303,13 @@ ProcessType () { | ||||
|  | ||||
| 			# make tree in persistent and tmpfs | ||||
|             # need to check whether the option of its parent direcotry is persistent or not | ||||
|  | ||||
|             TMPDIR=`dirname ${2}` | ||||
|             if [ ! -e ${PERSISTENT}${TMPDIR} ]; then | ||||
|                 mkdir -p ${PERSISTENT}${TMPDIR} | ||||
|                 echo "mkdir -p ${PERSISTENT}${TMPDIR}" >>$LOG | ||||
|             fi | ||||
|  | ||||
|             if [ "$isChild" = "1" ]; then | ||||
|                 num=${#PLIST[@]} | ||||
|                 for ((i=0;i<$num; i++)); do | ||||
|   | ||||
		Reference in New Issue
	
	Block a user