From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Denis Karpov <ext-denis.2.karpov@nokia.com>
Cc: lkml@vger.kernel.org, linux-fsdevel@vger.kernel.org,
adrian.hunter@nokia.com, artem.bityutskiy@nokia.com
Subject: Re: [PATCH 0/5] FAT errors, user space notifications
Date: Wed, 03 Jun 2009 12:08:10 +0900 [thread overview]
Message-ID: <87bpp6nhet.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <1243866494-31011-1-git-send-email-ext-denis.2.karpov@nokia.com> (Denis Karpov's message of "Mon, 1 Jun 2009 17:28:09 +0300")
Denis Karpov <ext-denis.2.karpov@nokia.com> writes:
> 1. Options for FAT file system behavior on errors (continue, panic,
> remount r/o)
>
> Current FAT behavior is to remount itself read-only on critical errors.
> Quite often this causes more harm to user space applications than if the
> error would be ignored - file system suddenly becoming r/o leads to all
> kind of surprises from applications (yes, I know applications should be
> written properly, this is not always the case).
>
> 'errors' mount option (equivalent to the one in
> ext2 fs) offers possibility for user space to specify the desired behavior.
> Default behavior is still as it was: remount read-only.
> [PATCH 1]
I can't see why more harm with r/o though, this would be useful for some
people. Please see the comment to this patch.
> 2. Generic mechanism for notifications of user space about file system's
> errors/inconsistency on a particular partition using:
>
> - sysfs entry /sys/block/<bdev>/<part>/fs_unclean
> - uevent KOBJ_CHANGE, uevent's environment variable FS_UNCLEAN=[0:1]
>
> User space might want to monitor these notifications (poll2() on sysfs
> file or udevd's rule for uevent) and fix the fs damage.
> File system can be marked clean again by writing '0' to the corresponding
> 'fs_unclean' sysfs file.
>
> Reason for this feature: doing full scale fsck on a file system
> at mounting time (especially residing on a slow and error prone media
> such as flash) takes long. Full fsck results e.g. in slow boot times.
> Alternative approach is to run limited fsck (or none at all) at
> mounting/boot time. At run-rime if an fs error is encountered, notify
> the user space and expect it to fix the file system.
> [PATCH 2]
This means you are assuming the fs driver can detect all kind of
corruption? It is not true. Mounting corrupted fs is dangerous, and the
fs driver might corrupt the another part of fs silently. (e.g. corrupted
pointer to object wouldn't be detected usually. etc.)
Or, limited check and repair on userspace, and other check is going into
fs driver?
> 3. Make FAT and EXT2 file systems use the above mechanism to optionally
> notify user space about errors. Implemented as 'notify' mount option.
> FAT error reporting facilities had to be re-factored in order to
> simplify sending error notifications.
> [PATCH 3,4,5]
Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2009-06-03 3:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-01 14:28 [PATCH 0/5] FAT errors, user space notifications Denis Karpov
2009-06-01 14:28 ` [PATCH 1/5] FAT: add 'errors' mount option Denis Karpov
2009-06-01 14:34 ` Denis Karpov
2009-06-01 14:28 ` [PATCH 2/5] FS: filesystem corruption notification Denis Karpov
2009-06-01 14:34 ` Denis Karpov
2009-06-01 14:28 ` [PATCH 3/5] FAT: generalize errors and warning printing Denis Karpov
2009-06-01 14:34 ` Denis Karpov
2009-06-01 14:28 ` [PATCH 4/5] FAT: add 'notify' mount option Denis Karpov
2009-06-01 14:34 ` Denis Karpov
2009-06-01 14:28 ` [PATCH 5/5] EXT2: " Denis Karpov
2009-06-01 14:34 ` Denis Karpov
2009-06-03 2:49 ` [PATCH 1/5] FAT: add 'errors' " OGAWA Hirofumi
2009-06-03 9:20 ` Denis Karpov
2009-06-04 3:54 ` OGAWA Hirofumi
2009-06-03 3:08 ` OGAWA Hirofumi [this message]
2009-06-03 11:36 ` [PATCH 0/5] FAT errors, user space notifications Denis Karpov
2009-06-03 15:13 ` OGAWA Hirofumi
-- strict thread matches above, loose matches on Subject: below --
2009-06-01 14:34 [PATCH 0/5] FAT errors, userspace notifications Denis Karpov
2009-06-10 21:01 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpp6nhet.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=adrian.hunter@nokia.com \
--cc=artem.bityutskiy@nokia.com \
--cc=ext-denis.2.karpov@nokia.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=lkml@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.