From owner-freebsd-current@FreeBSD.ORG Tue Sep 6 07:44:36 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 555BD16A41F; Tue, 6 Sep 2005 07:44:36 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from haven.freebsd.dk (haven.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0343343D45; Tue, 6 Sep 2005 07:44:35 +0000 (GMT) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (unknown [192.168.48.2]) by haven.freebsd.dk (Postfix) with ESMTP id 9081EBC66; Tue, 6 Sep 2005 07:44:34 +0000 (UTC) To: Don Lewis From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 06 Sep 2005 00:39:29 PDT." <200509060739.j867dT0x031916@gw.catspoiler.org> Date: Tue, 06 Sep 2005 09:44:33 +0200 Message-ID: <63946.1125992673@phk.freebsd.dk> Sender: phk@phk.freebsd.dk Cc: current@FreeBSD.org Subject: Re: patch for ext2fs unmount problem at shutdown X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2005 07:44:36 -0000 In message <200509060739.j867dT0x031916@gw.catspoiler.org>, Don Lewis writes: >Attached below is a patch to fix the problem caused by having any ext2fs >file systems mounted at system shutdown time that prevents any of the >file systems from being unmounted and then being marked dirty when the >system comes back up. It works by tweaking ext2fs so that it marks the >bufs that it keeps locked as long as the file system is mounted, and >tweaks the shutdown code to ignore these bufs when it is counting the >number of busy buffers. Why is this necessary ? As far as I know we do an orderly unmount of all filesystems at shutdown, so shouldn't ext2fs release the buffers at that time ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.