From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752875Ab2ISXXy (ORCPT ); Wed, 19 Sep 2012 19:23:54 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34417 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752601Ab2ISXXv (ORCPT ); Wed, 19 Sep 2012 19:23:51 -0400 Date: Thu, 20 Sep 2012 01:23:49 +0200 From: Pavel Machek To: "Theodore Ts'o" , Matt Sealey , Mike Thompson , Shawn Guo , Linux-Arm-Kernel , linux-ext4@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Tracking down suspend/resume ext3/mmc issues on imx233 Message-ID: <20120919232349.GA24132@elf.ucw.cz> References: <20120907060552.GL26709@S2101-09.ap.freescale.net> <20120910163345.GB3942@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120910163345.GB3942@thunk.org> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2012-09-10 12:33:45, Theodore Ts'o wrote: > On Mon, Sep 10, 2012 at 10:11:48AM -0500, Matt Sealey wrote: > > Wouldn't it be better if the root filesystem was marked as > > non-removable in the device tree - or in the case of a truly removable > > card, just marked in the MMC subsystem - and the MMC subsystem skipped > > the "it could be removed" for suspend/resume operations? > > I agree, this makes a lot of sense. If the root file system > disappears, you're toasted either way, so it's fair to assume that the > device on which the root file system is located should is > non-removable. I'm not sure I agree. If you treat root fs as removable, you'll get "crash". You'll need to replay the journal, but data is safe. If you treat it as non-removable, and someone manages to remove it, mount, and reinsert, you'll get silent data corruption. If the card is not removable, mark it as such... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html