From owner-freebsd-current@FreeBSD.ORG Fri Jan 7 14:03:54 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EB5D16A4CE for ; Fri, 7 Jan 2005 14:03:54 +0000 (GMT) Received: from av9-1-sn4.m-sp.skanova.net (av9-1-sn4.m-sp.skanova.net [81.228.10.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DF3D43D5A for ; Fri, 7 Jan 2005 14:03:53 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av9-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id 5C2CC3803A; Fri, 7 Jan 2005 15:03:52 +0100 (CET) Received: from smtp4-1-sn4.m-sp.skanova.net (smtp4-1-sn4.m-sp.skanova.net [81.228.10.181]) by av9-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id 4D2A537E46 for ; Fri, 7 Jan 2005 15:03:52 +0100 (CET) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-1-sn4.m-sp.skanova.net (Postfix) with SMTP id D2BAA37E46 for ; Fri, 7 Jan 2005 15:03:51 +0100 (CET) Received: (qmail 48295 invoked by uid 1001); 7 Jan 2005 14:03:51 -0000 Date: Fri, 7 Jan 2005 15:03:51 +0100 From: Erik Trulsson To: Daniel Eriksson , freebsd-current@freebsd.org Message-ID: <20050107140351.GA48267@falcon.midgard.homeip.net> Mail-Followup-To: Daniel Eriksson , freebsd-current@freebsd.org References: <20050107133631.GA47934@falcon.midgard.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050107133631.GA47934@falcon.midgard.homeip.net> User-Agent: Mutt/1.5.6i Subject: Re: A few CURRENT problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 07 Jan 2005 14:03:54 -0000 On Fri, Jan 07, 2005 at 02:36:31PM +0100, Erik Trulsson wrote: > On Fri, Jan 07, 2005 at 12:25:16PM +0100, Daniel Eriksson wrote: > > > > Here are four issues I currently have with CURRENT: > > > > * Mounting a filesystem async no longer seems to work. After mounting a > > filesystem like this: "mount -o noatime,async /dev/da1s1d > > /some/mount/point", mount does not report the filesystem as being mounted > > async: "/dev/da1s1d on /some/mount/point (ufs, local, noatime, > > soft-updates)" > > I have not had time to verify if the filesystem is actually mounted async or > > not, or if it is just a missing attribute output in the list produced by > > "mount". I don't know exactly when this stopped "working", but the newmount > > commit is my prime suspect. I do remember seeing "async" listed as a > > filesystem attribute ~2 months ago. > > Disable softupdates for that filesystem. If you have softupdates > enabled for a filesystem this seems to override async/sync. > (This applies not only to -CURRENT but to 5-STABLE and 4-STABLE as > well.) A quick check in the kernel source reveals the following code snippet (from src/sys/ufs/ffs/ffs_vfsops.c - identical code is in both RELENG_4 and RELENG_5) /* * Soft updates is incompatible with "async", * so if we are doing softupdates stop the user * from setting the async flag in an update. * Softdep_mount() clears it in an initial mount * or ro->rw remount. */ if (mp->mnt_flag & MNT_SOFTDEP) mp->mnt_flag &= ~MNT_ASYNC; Which confirms that is softupdates is enabled for a filesystem (as you seem to have according to the output of mount quoted above) then "async" will be disabled for that filesystem. -- Erik Trulsson ertr1013@student.uu.se