Re: [PATCH][RFC]ext4 on 4k-sector drives without read-modify-write support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 28, 2011 at 04:10:44PM -0500, Jeff Moyer wrote:
> > 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?

The drives do the read/modify/write, so O_DIRECT works fine from the
OS's perspective.  There is some risk of torn pages if you get a crash
at the wrong moment, but that's true whenver you have a misaligned
partition.  (At least for the drives that do the RMW in the disk
firmware.)

					-	 Ted
--
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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux