Re: [PATCH 0/5] FAT errors, userspace notifications

From: Pavel Machek
Date: Wed Jun 10 2009 - 17:02:00 EST



> 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]
>
> Userspace might want to monitor these notifications (poll2() on sysfs file
> or udevd's rule for uevent) and fix the fs damage.
> Filesystem can be marked clean again by writing '0' to the corresponding
> 'fs_unclean' sysfs file.

I see a race between userspace writing 0 and new error being detected.

Plus I don't think we have support for online fsck, not even on FAT...
Pavel
--
(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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/