Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760837AbZFJVEJ (ORCPT ); Wed, 10 Jun 2009 17:04:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755599AbZFJVDz (ORCPT ); Wed, 10 Jun 2009 17:03:55 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:46430 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757852AbZFJVDy (ORCPT ); Wed, 10 Jun 2009 17:03:54 -0400 Date: Wed, 10 Jun 2009 23:03:48 +0200 From: Pavel Machek To: "Bityutskiy Artem (Nokia-D/Helsinki)" , Andrew Morton , "axboe@kernel.dk" , "hirofumi@mail.parknet.co.jp" , "linux-ext4@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Hunter Adrian (Nokia-D/Helsinki)" , sandeen@redhat.com, jamie@shareable.org, kay.sievers@vrfy.org Subject: Re: [PATCH 0/4] FS: userspace notification of errors Message-ID: <20090610210348.GE1381@ucw.cz> References: <1244041518-32229-1-git-send-email-ext-denis.2.karpov@nokia.com> <20090603115611.6bbbaf55.akpm@linux-foundation.org> <4A276266.8000409@nokia.com> <20090604142735.GC28764@smart.research.nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090604142735.GC28764@smart.research.nokia.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1674 Lines: 36 > > > One part of the design which you didn't describe, but which I inferred > > > is that you intend that userspace will see the FS_UNCLEAN=1 messages > > > and will then poll all the /sys/block///fs_unclean files to > > > work out which partition(s) got the error, correct? Please spell all > > > that out in the changelog. > > > > I think this part of the design needs more thought. Not > > all FSes have block devices (UBIFS, JFFS2), and some FSes > > may (theoretically) span more than one block device (btrfs?). > > Big thanks to everybody participating in this thread, for reviews and critiques. > Here's a proposal/RFC for another way to implement this feature: > > Taking into account Artem's and Kay's comments, indeed, having attributes > like 'fs_error' tied to a block device does not seem right. > What we need is an object/entity that: > > - is not associated to a block device > - is not associated to a partition > - is not associated to a filesystem as a general entity > - is uniquely associated to a filesystem's 'instance': a mounted volume > carying that filesystem > - apperas at volume mount time and disappears with volume unmount Add a ",errors " at the end of line to /proc/mounts when error is detected? (...and make /proc/mounts pollable?) -- (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/