probably embarrassing SUJ question
Alexander Best
arundel at freebsd.org
Fri Aug 19 18:54:26 UTC 2011
On Fri Aug 19 11, Kirk McKusick wrote:
> > Date: Fri, 19 Aug 2011 17:40:33 +0000
> > From: Alexander Best <arundel at freebsd.org>
> > To: freebsd-fs at freebsd.org
> > Subject: probably embarrassing SUJ question
> >
> > Hi there,
> >
> > I recently saw somebody using mount -o async in combination with
> > gjournal. I just wanted to ask, whether async can also be used with
> > SUJ? or will this put me in a dangerous situation, where my fs will
> > get hosed after a crash?
> >
> > cheers.
> > alex
>
> The async flag is incompatible with soft updates or journaled
> soft updates. But not to fear, we added a seatbelt in ffs_mount:
>
> /*
> * 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 (MOUNTEDSOFTDEP(mp)) {
> MNT_ILOCK(mp);
> mp->mnt_flag &= ~MNT_ASYNC;
> MNT_IUNLOCK(mp);
> }
>
> So, nothing bad will happen.
ah..thanks a lot. good thing you provide such kind of seatbelts. :)
cheers.
alex
>
> Kirk McKusick
More information about the freebsd-fs
mailing list