[PC-BSD Commits] r7192 - pcbsd/stable/pc-sysinstall/backend
svn at pcbsd.org
svn at pcbsd.org
Tue Jul 13 07:38:36 PDT 2010
Author: kris
Date: 2010-07-13 07:38:36 -0700 (Tue, 13 Jul 2010)
New Revision: 7192
Modified:
pcbsd/stable/pc-sysinstall/backend/functions-cleanup.sh
Log:
Added option for async when creating fstab for journaling
Modified: pcbsd/stable/pc-sysinstall/backend/functions-cleanup.sh
===================================================================
--- pcbsd/stable/pc-sysinstall/backend/functions-cleanup.sh 2010-07-13 14:22:06 UTC (rev 7191)
+++ pcbsd/stable/pc-sysinstall/backend/functions-cleanup.sh 2010-07-13 14:38:36 UTC (rev 7192)
@@ -136,6 +136,13 @@
# Unset EXT
EXT=""
+
+ # Set mount options for file-systems
+ case $PARTFS in
+ UFS+J) MNTOPTS="rw,noatime,async" ;;
+ SWAP) MNTOPTS="sw" ;;
+ *) MNTOPTS="rw,noatime" ;;
+ esac
# Figure out if we are using a glabel, or the raw name for this entry
if [ ! -z "${PARTLABEL}" ]
@@ -186,9 +193,9 @@
# Echo out the fstab entry now
if [ "${PARTFS}" = "SWAP" ]
then
- echo "/dev/${DEVICE} none swap sw 0 0" >> ${FSTAB}
+ echo "/dev/${DEVICE} none swap ${MNTOPTS} 0 0" >> ${FSTAB}
else
- echo "/dev/${DEVICE} ${PARTMNT} ufs rw,noatime 1 1" >> ${FSTAB}
+ echo "/dev/${DEVICE} ${PARTMNT} ufs ${MNTOPTS} 1 1" >> ${FSTAB}
fi
fi # End of ZFS Check
More information about the Commits
mailing list