On Mon, 2007-03-19 at 15:12 -0500, Matt Mackall wrote: > > Should we export block devices with 16/32/64/128 KiB size ? > > Sure, why not?
Simply because we want to have the ability to write fine grained in order to write data safe to FLASH. If we export those large sizes we lose this ability and have to write full erase blocks for a couple of bytes. This simply breaks JFFS2 and you can do the math yourself what that means for the life time of FLASH, when you write small data chunks in fast sequences and want to make sure that they are written to FLASH immidiately. > > A disk _IS_ fundamentally different to FLASH and all the magic which is > > done inside of CF-Cards and USB-Sticks is just hiding this away. > > And yet they're still both block devices. That our current block layer > doesn't handle one as well as the other is something we should fix > instead of inventing a whole new full-feature but incompatible block > layer on the side. And yet they are still broken and unreliable. And you can wear them out in no time, just because they are stupid and do full eraseblock updates when you write one sector. No thanks. A bunch of people have done experiments with those beasts and they are unusable for environments, where we need to make sure, that data is on FLASH. UBI is not an incompatible block layer. It allows to implement a very clever block layer on top. And you can use just one large partition and small ones for your kernel image and bootloader, which still get the benefits of data integrity (by doing background safe copies on bit flips) and the easy implementation in an IPL. tglx - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/