"Ted Ts'o" <tytso@xxxxxxx> writes: > On Mon, Feb 28, 2011 at 03:19:21PM -0500, Martin K. Petersen wrote: >> Kind of, yes. But that involves teaching every ATA driver in $LEGACY_OS >> about 4KB logical blocks. There is little value is switching to 4KB >> logical blocks in the first place. So the claim is that it is easier to >> stick with 512-byte addressing, leave the I/O stack intact, and require >> the filesystem to always issue aligned units of 4KB. >> >> That saves the drive vendors from implementing RMW logic and puts the >> burden on us. Perfect deal. > > So it there a reliable way to detect that disk drives that don't have > the Read-Modify-Write logic? If that can be reflected up the I/O > layer I can have mke2fs enforce that restriction, which currently we > only enforce if the logical blocksize is 4k. That's not enough, I'm afraid. How do you deal with O_DIRECT, for example? Cheers, Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html