From owner-freebsd-fs@FreeBSD.ORG Fri Aug 19 18:19:48 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57B2E1065673; Fri, 19 Aug 2011 18:19:48 +0000 (UTC) (envelope-from mckusick@mckusick.com) Received: from chez.mckusick.com (chez.mckusick.com [70.36.157.235]) by mx1.freebsd.org (Postfix) with ESMTP id 380258FC1D; Fri, 19 Aug 2011 18:19:48 +0000 (UTC) Received: from chez.mckusick.com (localhost [127.0.0.1]) by chez.mckusick.com (8.14.3/8.14.3) with ESMTP id p7JHqHEt030978; Fri, 19 Aug 2011 10:52:17 -0700 (PDT) (envelope-from mckusick@chez.mckusick.com) Message-Id: <201108191752.p7JHqHEt030978@chez.mckusick.com> To: Alexander Best In-reply-to: <20110819174033.GA68015@freebsd.org> Date: Fri, 19 Aug 2011 10:52:17 -0700 From: Kirk McKusick X-Spam-Status: No, score=0.0 required=5.0 tests=MISSING_MID, UNPARSEABLE_RELAY autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on chez.mckusick.com Cc: freebsd-fs@freebsd.org Subject: Re: probably embarrassing SUJ question X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 18:19:48 -0000 > Date: Fri, 19 Aug 2011 17:40:33 +0000 > From: Alexander Best > To: freebsd-fs@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