Re: Filesystem for block devices using flash storage?

From: Alan Cox
Date: Sat Oct 11 2008 - 13:52:30 EST


> > Writes to magnetic disks are functionally atomic at the sector level.

No they are not.

> I don't think ext3 is safe w.r.t. whole eraseblocks disappearing. So
> if you write data 'nearby' root directory and power fails, bye bye
> filesystem, and journal will not help.

You have similar problems on rotating media. A write to a block can
corrupt other blocks adjacent to the block you write, and on the latest
disks the physical block size can be greater than the logical one so
unless you laid your partitions out right you have read-modify-write
cycles goin on.

Alan
--
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/