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:
mxi1 2010-08-19 14:42:31 +00:00
parent 64e6de14b5
commit 67126f0ad2
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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