Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2005 15:03:51 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Daniel Eriksson <daniel_k_eriksson@telia.com>, freebsd-current@freebsd.org
Subject:   Re: A few CURRENT problems
Message-ID:  <20050107140351.GA48267@falcon.midgard.homeip.net>
In-Reply-To: <20050107133631.GA47934@falcon.midgard.homeip.net>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAFq8e/92cLk6Q1zpeIhImOAEAAAAA@telia.com> <20050107133631.GA47934@falcon.midgard.homeip.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20050107140351.GA48267>