From owner-freebsd-arch Tue Apr 17 12: 0: 6 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail.wgate.com (mail.wgate.com [38.219.83.4]) by hub.freebsd.org (Postfix) with ESMTP id 8F2C837B43F; Tue, 17 Apr 2001 12:00:00 -0700 (PDT) (envelope-from rjesup@wgate.com) Received: from jesup.eng.tvol.net ([10.32.2.26]) by mail.wgate.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 2LLW6G3D; Tue, 17 Apr 2001 14:59:55 -0400 Reply-To: Randell Jesup To: Kirk McKusick Cc: Robert Watson , arch@FreeBSD.ORG Subject: Re: Background Fsck References: <200104162353.QAA55416@beastie.mckusick.com> From: Randell Jesup Date: 17 Apr 2001 15:03:52 -0400 In-Reply-To: Kirk McKusick's message of "Mon, 16 Apr 2001 16:53:08 -0700" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kirk McKusick writes: > 2) They start a second background fsck running at the same time as the > first. > >This would be indeterminate in the same way as running two foreground >fsck's on the same filesystem would be indeterminate. This failure >senario has not been considered problematic in the past, so is not >guarded against. ... >Only (2) seems to be a problem, and it has not proven to be an issue in >years past. If it is perceived to be a bigger problem now, a fix could be >found. A general solution would be to flock the underlying special device >as this would work for both foreground and background fsck. At the moment, >the /dev filesystem cannot handle advisory file locks, so some serious >work would be needed there first. I personally don't like leaving uzi's around with the trigger-lock removed. Admittedly, no one here would pick it up - or at least they wouldn't admit to it later... ;-) I think we should take a shot at adding the lock code that someone else apparently did a while back and close this hole. -- Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team ('88-94) rjesup@wgate.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message