Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932500AbWBTB0V (ORCPT ); Sun, 19 Feb 2006 20:26:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932510AbWBTB0V (ORCPT ); Sun, 19 Feb 2006 20:26:21 -0500 Received: from dspnet.fr.eu.org ([213.186.44.138]:51466 "EHLO dspnet.fr.eu.org") by vger.kernel.org with ESMTP id S932500AbWBTB0V (ORCPT ); Sun, 19 Feb 2006 20:26:21 -0500 Date: Mon, 20 Feb 2006 02:26:20 +0100 From: Olivier Galibert To: Pavel Machek Cc: Phillip Susi , Alan Stern , Kyle Moffett , Alon Bar-Lev , Kernel development list Subject: Re: Flames over -- Re: Which is simpler? Message-ID: <20060220012619.GA27899@dspnet.fr.eu.org> Mail-Followup-To: Olivier Galibert , Pavel Machek , Phillip Susi , Alan Stern , Kyle Moffett , Alon Bar-Lev , Kernel development list References: <43F8C464.3000509@cfl.rr.com> <20060219194343.GA15311@elf.ucw.cz> <20060220005617.GB90469@dspnet.fr.eu.org> <20060220010102.GB15965@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060220010102.GB15965@elf.ucw.cz> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 24 On Mon, Feb 20, 2006 at 02:01:02AM +0100, Pavel Machek wrote: > Actually, if you really want to do this, it would probably make sense > to do at blockdevice level -- with device mapper magic or something. > > That way you could prompt user "return that flash driver, I still want > to write to it" after surprise unplug, etc. And suspend is special > case of surprise unplug, then replug. I'm not sure. Suspend is not a surprise, so you can do things so that you don't lose anything (what I described is pretty much unmounting while keeping file references). Surprise unplug, there is no way you can make the filesystem clean if it wasn't already. I also think that USB flash and this kind of things should go back to clean state as soon as possible even whe mountd, but that's a different issue. OG. - 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/