svn commit: r252133 - user/cperciva/portsnap-build
Colin Percival
cperciva at FreeBSD.org
Mon Jun 24 00:23:05 UTC 2013
Author: cperciva
Date: Mon Jun 24 00:23:04 2013
New Revision: 252133
URL: http://svnweb.freebsd.org/changeset/base/252133
Log:
Don't need to record atimes on a disk which we're going to throw away soon.
No point having sync on a memory disk.
Modified:
user/cperciva/portsnap-build/build.sh
user/cperciva/portsnap-build/releasesnap.sh
Modified: user/cperciva/portsnap-build/build.sh
==============================================================================
--- user/cperciva/portsnap-build/build.sh Sun Jun 23 23:35:29 2013 (r252132)
+++ user/cperciva/portsnap-build/build.sh Mon Jun 24 00:23:04 2013 (r252133)
@@ -29,7 +29,7 @@ NEWREV=`sh -e s/svn-getrev.sh head`
# Create a memory disk for holding the snapshot files.
SNAPMD=`mdconfig -a -t swap -s ${SNAPMDSIZE} -n`
newfs -O 1 -n /dev/md${SNAPMD} >/dev/null
-mount /dev/md${SNAPMD} ${SNAPDIR}
+mount -onoatime,async /dev/md${SNAPMD} ${SNAPDIR}
# Build a snapshot
sh -e s/treesnap-build.sh head@${NEWREV} "${DESCRIBES_BUILD}" \
Modified: user/cperciva/portsnap-build/releasesnap.sh
==============================================================================
--- user/cperciva/portsnap-build/releasesnap.sh Sun Jun 23 23:35:29 2013 (r252132)
+++ user/cperciva/portsnap-build/releasesnap.sh Mon Jun 24 00:23:04 2013 (r252133)
@@ -29,7 +29,7 @@ newfs -O 1 -n /dev/md${SNAPMD} >/dev/nul
# Mount the memory disk
WORKDIR=${STATEDIR}/work
mkdir ${WORKDIR}
-mount /dev/md${SNAPMD} ${WORKDIR}
+mount -onoatime,async /dev/md${SNAPMD} ${WORKDIR}
# Build a snapshot
SNAPDIR=${STATEDIR}/work/files
More information about the svn-src-user
mailing list