Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757841AbZFCPN4 (ORCPT ); Wed, 3 Jun 2009 11:13:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754295AbZFCPNs (ORCPT ); Wed, 3 Jun 2009 11:13:48 -0400 Received: from mail.parknet.ad.jp ([210.171.162.6]:48699 "EHLO mail.officemail.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751826AbZFCPNr (ORCPT ); Wed, 3 Jun 2009 11:13:47 -0400 From: OGAWA Hirofumi To: linux-kernel@vger.kernel.org Cc: "linux-fsdevel\@vger.kernel.org" , "Hunter Adrian \(Nokia-D\/Helsinki\)" , "Bityutskiy Artem \(Nokia-D\/Helsinki\)" Subject: Re: [PATCH 0/5] FAT errors, user space notifications References: <1243866494-31011-1-git-send-email-ext-denis.2.karpov@nokia.com> <87bpp6nhet.fsf@devron.myhome.or.jp> <20090603113617.GA9917@smart.research.nokia.com> Date: Thu, 04 Jun 2009 00:13:45 +0900 In-Reply-To: <20090603113617.GA9917@smart.research.nokia.com> (Denis Karpov's message of "Wed, 3 Jun 2009 14:36:17 +0300") Message-ID: <87oct5l592.fsf@devron.myhome.or.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.10/RELEASE, bases: 24052007 #308098, status: clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1923 Lines: 45 Denis Karpov writes: > I realise that, but in this particular case I deal with non-critical data > on a large FAT partition and can probably afford certain risk of damaging > the data. What I can't afford is to spend several minutes fsck'ing huge FAT > partition on slow SD/MMC media during bootup. > > So I choose to optionally receive notification of errors encountered > during 'run time' and act upon them. > > Otherwise, nothing stops you from doing proper fsck before mounting. I think fsckless is to add the reliability to fs driver (logging, softupdate, etc.). Yes, it's not easy, and it needs time. Anyway, I actually thought about softupdate (and some others) before, I think it's _not_ nothing. > IMO, receivng notification of errors is benefitial in any case: > together with the 1st patch above it gives full flexibility to user space > to implement fs 'run-time' errors handling policy (at least for FAT,EXT2), > e.g.: > > - do nothing: remount r/o on errors, don't monitor kernel notifications (old/default > behavior) > - remount-ro on errors, get notified; unmount partition, fsck, mount > partition back r/w; > - ignore errors (continue), get notified: unmount the partition later at > suitable time, fsck, mount back r/w If this is monitoring interface, I guess it should be more generic. And I guess it will tell what happened in kernel, not fs_clean. (There is no guarantee about fs state) If not, some errors can not be detected by fs driver. User may know some run-time errors by fs_clean, but some run-time errors is not. So, user can not trust fs_clean. Thanks. -- OGAWA Hirofumi -- 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/