From owner-freebsd-current@FreeBSD.ORG Tue Sep 6 09:01: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 833AC16A41F; Tue, 6 Sep 2005 09:01:36 +0000 (GMT) (envelope-from matthias.andree@gmx.de) Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.e-technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A5BA43D49; Tue, 6 Sep 2005 09:01:35 +0000 (GMT) (envelope-from matthias.andree@gmx.de) Received: from localhost (localhost [127.0.0.1]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 23BBB440A9; Tue, 6 Sep 2005 11:01:33 +0200 (CEST) Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1]) by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11850-04; Tue, 6 Sep 2005 11:01:31 +0200 (CEST) Received: from m2a2.dyndns.org (p50913A18.dip0.t-ipconnect.de [80.145.58.24]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id A5AFB440A0; Tue, 6 Sep 2005 11:01:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id EE44977521; Tue, 6 Sep 2005 11:01:30 +0200 (CEST) Received: from m2a2.dyndns.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30210-05; Tue, 6 Sep 2005 11:01:30 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 500) id 4930E77636; Tue, 6 Sep 2005 11:01:30 +0200 (CEST) From: Matthias Andree To: "Poul-Henning Kamp" In-Reply-To: <64074.1125994865@phk.freebsd.dk> (Poul-Henning Kamp's message of "Tue, 06 Sep 2005 10:21:05 +0200") References: <64074.1125994865@phk.freebsd.dk> X-PGP-Key: http://home.pages.de/~mandree/keys/GPGKEY.asc Date: Tue, 06 Sep 2005 11:01:30 +0200 Message-ID: User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at dt.e-technik.uni-dortmund.de Cc: Don Lewis , 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 09:01:36 -0000 "Poul-Henning Kamp" writes: > PS: Considering power management, sleep/suspend modes etc, it would > make sense to add a "MNT_CLEAN" flag to pass to VOP_FSYNC which > instructed the filesystem to flush everything to disk, and reset > any "dirty" flags on the disk to "clean" but leave the filesystem > mounted. (On subsequent I/O the first thing the filesystem must > do is set the dirty flag again. That way it would be as safe (as > possible) to power a sleeping/suspend machine off. If you have proper cache flushing/synchronization semantics (such as putting an ATA disk to sleep), go right ahead - but woe betide the user whose disk choses to reorder writes and sleep before flushing the whole cache. -- Matthias Andree