2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-16 00:00:23 +00:00

fix 2090 delete underlying files for ro statelite mounts

This commit is contained in:
bybai
2017-01-05 01:33:34 -05:00
parent b59663da48
commit b4aa8a5efd

View File

@@ -460,15 +460,11 @@ ProcessType () {
CHAREND=`echo ${STRPATH} | /usr/bin/cut -c${STRLEN}`
if [ "${CHAREND}" = "/" ]; then # it is one directory
if [ ! -d ${STRPATH} ]; then
/bin/rm -rf ${STRPATH}
/bin/mkdir ${STRPATH}
fi
else
if [ ! -f ${STRPATH} ]; then
/bin/rm -rf ${STRPATH}
/bin/touch ${STRPATH}
fi
fi
echo "mout --bind -o ro ${1} ${MNTDIR}${2}" >>$LOG 2>&1