From owner-freebsd-current@FreeBSD.ORG Thu Aug 9 16:38:27 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A08F516A417 for ; Thu, 9 Aug 2007 16:38:27 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 2747813C457 for ; Thu, 9 Aug 2007 16:38:26 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so156099nfb for ; Thu, 09 Aug 2007 09:38:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KyQWLWt74+r6LxkwVzRDFy+Vvzm+O/n0vGy927nPLCNZu5TmJrK+HzsRITFG5o2faIh3ncMwO+YILj7Rnc/Ehub1Pd/qsApOwb7D/KB0cZQ7XZDPA2sxaXkBtoE9Hc4QZpNgxNFeofK2qusAI+y8xpRtat/G7P0WLUDJLvNkU7Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q1/D9qx+URVsrrFKZLkYbS+kNvPEa3Iw/+KMC74Nc6v/Rel5LlCOEmdWO84InzXLi4NHWUMz3HMGQKtiPaRqtynPa07f6dyRuuYMCXU8xib+Wpp93buB/Ce4IwMdyPUAgBg/+7pXdl0zce56mG4mMYioMbqrz8RAwzWuyqkfw7U= Received: by 10.86.95.20 with SMTP id s20mr1281191fgb.1186677505775; Thu, 09 Aug 2007 09:38:25 -0700 (PDT) Received: by 10.86.59.6 with HTTP; Thu, 9 Aug 2007 09:38:25 -0700 (PDT) Message-ID: <790a9fff0708090938u4de36b8fsdc65c16023d92116@mail.gmail.com> Date: Thu, 9 Aug 2007 11:38:25 -0500 From: "Scot Hetzel" To: rodrigc@comcast.net In-Reply-To: <080920071511.17793.46BB2EB700018E080000458122073000330C09079D0B019D@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <080920071511.17793.46BB2EB700018E080000458122073000330C09079D0B019D@comcast.net> Cc: freebsd-current@freebsd.org, karol.kwiat@gmail.com Subject: Re: Can't remove 'noatime' on mounted filesystem on CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2007 16:38:27 -0000 On 8/9/07, 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.