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:
parent
64e6de14b5
commit
67126f0ad2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user