probably embarrassing SUJ question
Kirk McKusick
mckusick at mckusick.com
Fri Aug 19 18:19:48 UTC 2011
> 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.
Kirk McKusick
More information about the freebsd-fs
mailing list