aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2010-07-31 19:25:51 +0000
committerWarner Losh <imp@FreeBSD.org>2010-07-31 19:25:51 +0000
commit722119408b638d5f6bb206614e8d6f0e25435620 (patch)
treeed7447315b0fc520b81b8f362043f533a3ac5707 /usr.sbin
parent9ca746fb79fe74a8cc837c28aa7fc057a13a7d83 (diff)
downloadsrc-722119408b638d5f6bb206614e8d6f0e25435620.tar.gz
src-722119408b638d5f6bb206614e8d6f0e25435620.zip
Adds the async option for journaled file systems (UFS + journaling)
Submitted by: kris moore (kris at pcbsd org)
Notes
Notes: svn path=/head/; revision=210700
Diffstat (limited to 'usr.sbin')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend/functions-cleanup.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh b/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh
index 0a797363f726..f7eedf5996b8 100755
--- a/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh
+++ b/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh
@@ -163,6 +163,14 @@ setup_fstab()
# 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}" ]
then
@@ -212,9 +220,9 @@ setup_fstab()
# 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