Date: Fri, 27 Mar 1998 09:59:48 +0000 From: David Malone <dwmalone@maths.tcd.ie> To: Bruce Evans <bde@zeta.org.au> Cc: freebsd-bugs@hub.freebsd.org Subject: Re: bin/6124: Getting md5 to reset access times. Message-ID: <9803270959.aa18061@salmon.maths.tcd.ie> In-Reply-To: Your message of "Fri, 27 Mar 1998 11:01:42 %2B1100." <199803270001.LAA22745@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Would you be interested in a similar addition to mtree? > > No, it corrupts the more important inode change times. Mount read-only > to avoid corruption of both the access time and the inode change times, > not to mention the data. I presume mounting "noatime" while checksumming would have the same effect and leave the filesystem more useable? The trickest bit of this procedure is preserving the current mount options after mounting noatime. Is there a better way than: device=`df -n $directory | tail -1 | awk '{ print $1 }'` mountpoint=`df -n $directory | tail -1 | awk '{ print $NF }'` options=`mount -p | awk '{ if( $1 == "'$device'" ) print $4 }'` mount -u -o $options,noatime $mountpoint # Do checksumming mount -u -o $options $mountpoint David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <9803270959.aa18061>