From owner-freebsd-stable@FreeBSD.ORG Mon Nov 27 20:37:48 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0270316A56B for ; Mon, 27 Nov 2006 20:37:48 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from optimus.centralmiss.com (ns.centralmiss.com [206.156.254.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEA3D45236 for ; Mon, 27 Nov 2006 20:18:39 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by optimus.centralmiss.com (Postfix) with ESMTP id EBF4C28432; Mon, 27 Nov 2006 14:19:40 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 675A961C3D; Mon, 27 Nov 2006 14:19:40 -0600 (CST) Date: Mon, 27 Nov 2006 14:19:40 -0600 From: "Matthew D. Fuller" To: Peter Jeremy Message-ID: <20061127201940.GD31944@over-yonder.net> References: <200611271353.kARDr6tN034491@lurza.secnetix.de> <20061127164119.E63DB45054@ptavv.es.net> <20061127183758.GC865@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061127183758.GC865@turion.vk2pj.dyndns.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.11-fullermd.3 Cc: ohartman@mail.zedat.fu-berlin.de, freebsd-stable@freebsd.org Subject: Re: Problems unmounting/fssyncking extern UFS filesystem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 20:37:48 -0000 On Tue, Nov 28, 2006 at 05:37:58AM +1100 I heard the voice of Peter Jeremy, and lo! it spake thus: > > All current Un*x filesystems will automatically flush all buffers as > part of the unmount process That Depends(tm), partly on what you mean by 'unmount'. With my Nov05 and Jun06 -CURRENT's, I had to take great care to sync and sync and wait and sync and sync filesystems before "mount -u -o ro"'ing them, because otherwise they'd end up NOT flushing everything, leaving unreferenced stuff around that fsck had to clean up, but only if I ran it manually because mount DID mark the filesystem as clean. I just tried to reproduce it on my last-week -CURRENT, and it no longer does that. Instead, it locked itself into a "softdep_waitidle: Failed to flush worklist" loop and won't LET me remount r/o (or unmount) the filesystems. Obviously, I should have kept up my now-established habit of sync'ing and waiting a while before un/remounting... -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.