linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] FAT errors, user space notifications
@ 2009-06-01 14:28 Denis Karpov
  2009-06-01 14:28 ` [PATCH 1/5] FAT: add 'errors' mount option Denis Karpov
  2009-06-03  3:08 ` [PATCH 0/5] FAT errors, user space notifications OGAWA Hirofumi
  0 siblings, 2 replies; 12+ messages in thread
From: Denis Karpov @ 2009-06-01 14:28 UTC (permalink / raw)
  To: hirofumi; +Cc: lkml, linux-fsdevel, adrian.hunter, artem.bityutskiy


Hello,

here's a series of patches that implement:

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]

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]
   
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]

Adrian Hunter and Artem Bityutskiy provided input and ideas on implementing
these features.

Denis Karpov.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-06-04  3:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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:28   ` [PATCH 2/5] FS: filesystem corruption notification Denis Karpov
2009-06-01 14:28     ` [PATCH 3/5] FAT: generalize errors and warning printing Denis Karpov
2009-06-01 14:28       ` [PATCH 4/5] FAT: add 'notify' mount option Denis Karpov
2009-06-01 14:28         ` [PATCH 5/5] EXT2: " 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 ` [PATCH 0/5] FAT errors, user space notifications OGAWA Hirofumi
2009-06-03 11:36   ` Denis Karpov
2009-06-03 15:13     ` OGAWA Hirofumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).