Date: Thu, 9 Aug 2007 11:38:25 -0500 From: "Scot Hetzel" <swhetzel@gmail.com> To: rodrigc@comcast.net Cc: freebsd-current@freebsd.org, karol.kwiat@gmail.com Subject: Re: Can't remove 'noatime' on mounted filesystem on CURRENT Message-ID: <790a9fff0708090938u4de36b8fsdc65c16023d92116@mail.gmail.com> In-Reply-To: <080920071511.17793.46BB2EB700018E080000458122073000330C09079D0B019D@comcast.net> References: <080920071511.17793.46BB2EB700018E080000458122073000330C09079D0B019D@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/9/07, rodrigc@comcast.net <rodrigc@comcast.net> wrote: > > The only way to get rid of noatime is to umount and remount the UFS > filesystem. > > Hi, > > I have a patch pending for CURRENT which deals with this issue, but has not > been > approved by re@ yet. > > In the meantime, the workaround is to do: > > mount -u -o nonoatime > The work around works on UFS, but fails on ZFS. I had to unmount the ZFS filesystem before it would allow me to set noatime with mount again. But it wouldn't allow me to unset noatime with mount: hp010# umount /usr/ports/distfiles hp010# zfs mount -a hp010# zfs get atime rootpool/usr/ports/distfiles ; mount | grep distfiles NAME PROPERTY VALUE SOURCE rootpool/usr/ports/distfiles atime on default rootpool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local) hp010# mount -u -o noatime /usr/ports/distfiles hp010# zfs get atime rootpool/usr/ports/distfiles ; mount | grep distfiles NAME PROPERTY VALUE SOURCE rootpool/usr/ports/distfiles atime off temporary rootpool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noatime) hp010# mount -u -o nonoatime /usr/ports/distfiles hp010# zfs get atime rootpool/usr/ports/distfiles ; mount | grep distfiles NAME PROPERTY VALUE SOURCE rootpool/usr/ports/distfiles atime off temporary rootpool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noatime) hp010# mount -u -o atime /usr/ports/distfiles hp010# zfs get atime rootpool/usr/ports/distfiles ; mount | grep distfiles NAME PROPERTY VALUE SOURCE rootpool/usr/ports/distfiles atime off temporary rootpool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noatime) The only way to reset it is to use zfs inherit or zfs set: hp010# zfs inherit -r atime rootpool/usr/ports/distfiles hp010# zfs get atime rootpool/usr/ports/distfiles ; mount | grep distfiles NAME PROPERTY VALUE SOURCE rootpool/usr/ports/distfiles atime on default rootpool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local) hp010# mount -u -o nonoatime /usr/ports/distfiles hp010# zfs get atime rootpool/usr/ports/distfiles ; mount | grep distfiles NAME PROPERTY VALUE SOURCE rootpool/usr/ports/distfiles atime on default rootpool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local) hp010# mount -u -o noatime /usr/ports/distfiles hp010# zfs get atime rootpool/usr/ports/distfiles ; mount | grep distfiles NAME PROPERTY VALUE SOURCE rootpool/usr/ports/distfiles atime on default rootpool/usr/ports/distfiles on /usr/ports/distfiles (zfs, local) Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0708090938u4de36b8fsdc65c16023d92116>