Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754529AbXFLOlh (ORCPT ); Tue, 12 Jun 2007 10:41:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753461AbXFLOlO (ORCPT ); Tue, 12 Jun 2007 10:41:14 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:1305 "EHLO spitz.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753262AbXFLOlO (ORCPT ); Tue, 12 Jun 2007 10:41:14 -0400 Date: Sun, 10 Jun 2007 18:31:48 +0000 From: Pavel Machek To: Mark Lord Cc: Chuck Ebbert , Andrew Morton , Stephen Tweedie , "Theodore Ts'o" , Linux Kernel Subject: Re: ext3fs: umount+sync not enough to guarantee metadata-on-disk Message-ID: <20070610183148.GB4272@ucw.cz> References: <46680BB8.50404@rtr.ca> <20070607084142.42583639.akpm@linux-foundation.org> <46682E4E.1070303@redhat.com> <46687C05.1080408@rtr.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46687C05.1080408@rtr.ca> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1243 Lines: 37 Hi! > >>Did this succeed? If the application is still > >>truncating that file, the > >>umount should have failed. > > > >Shouldn't sync should wait for truncate to finish? > > The part that gets me here, and that others might be > missing, > is that we are not waiting for ftruncate at this point. > > We're waiting for unlink. The application that was > doing ftruncate > in tiny little doses has been sent a kill-9 signal, so > what should > be happening now (confirmed by disk activity LEDs) is > the file should > just be getting deleted the same as if we did "rm > bigfile" on it. Well, AFAICT kill-9 signal delivery can take time. It still might be doing ftruncate. It would be interesting to know when in that sequence mythtv dies... or perhaps put loop 'while killall -9 mythtv returns success, sleep 1' into shutdown scripts? Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/