From owner-freebsd-bugs Fri Mar 27 02:00:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA28461 for freebsd-bugs-outgoing; Fri, 27 Mar 1998 02:00:07 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from salmon.maths.tcd.ie (mmdf@salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA28376 for ; Fri, 27 Mar 1998 01:59:59 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from graves.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 27 Mar 98 09:59:48 +0000 (GMT) To: Bruce Evans cc: freebsd-bugs@hub.freebsd.org Subject: Re: bin/6124: Getting md5 to reset access times. In-reply-to: Your message of "Fri, 27 Mar 1998 11:01:42 +1100." <199803270001.LAA22745@godzilla.zeta.org.au> Date: Fri, 27 Mar 1998 09:59:48 +0000 From: David Malone Message-ID: <9803270959.aa18061@salmon.maths.tcd.ie> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > 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