Christoph Hellwig wrote:
On Mon, Feb 15, 2010 at 11:42:55AM -0500, Chris Mason wrote:
We can record the smallest alignment while scanning the devices and just
use that. In general 4K is good enough, although some other database
company might be more worried about smaller numbers.
How is access at 512 byte granularity supposed to work? With 4k logical
sector drives that will require a manual read-modify write cycle in
the direct I/O code, which is counter the intentions.
My understanding is the current 4k drives normally operate in
512 byte read/write access mode unless you set them to run
as 4k only.
In 512 byte mode, they buffer internally on writes. It is probably
just as safe as any other drive on a power hit, as in anything may
be trash.
btrfs read of 512 byte boundaries is safe because we only write
in 4k boundaries (hopefully we can detect and align on the drive).
jim
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html