Date: Sat, 31 Jul 2010 19:25:51 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210700 - head/usr.sbin/pc-sysinstall/backend Message-ID: <201007311925.o6VJPps1072001@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Sat Jul 31 19:25:51 2010 New Revision: 210700 URL: http://svn.freebsd.org/changeset/base/210700 Log: Adds the async option for journaled file systems (UFS + journaling) Submitted by: kris moore (kris at pcbsd org) Modified: head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh Modified: head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh Sat Jul 31 19:13:08 2010 (r210699) +++ head/usr.sbin/pc-sysinstall/backend/functions-cleanup.sh Sat Jul 31 19:25:51 2010 (r210700) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007311925.o6VJPps1072001>