Re: writing file to disk: not as easy as it looks

From: Pavel Machek
Date: Tue Dec 02 2008 - 17:48:50 EST




...and it is unsafe to run ext2/ext3 on any media that can return
error on write. That includes perfectly working disk drives that just
ran out of spare blocks.

> AFAICT it is unsafe to run ext2/ext3 on any media that can be removed
> without unmounting (missing fsync error propagation), and it is

To be fair, bad fsync semantics (error only reported to the first
person that asks) looks like fundamental Unix problem, nothing ext2/3
specific...

> to run ext2/ext3 on any flash-based storage with block interface (SD
> cards, flash sticks).

...and I'm aware of no filesystem that _can_ reliably work on SD
cards/USB flash sticks...
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/