]> Git Repo - qemu.git/commit
null: Switch to byte-based read/write
authorEric Blake <[email protected]>
Tue, 24 Apr 2018 19:25:03 +0000 (14:25 -0500)
committerKevin Wolf <[email protected]>
Tue, 15 May 2018 14:11:41 +0000 (16:11 +0200)
commitb3241e9274ca1aafb94ad8683305bb383e11c766
treef51897bae35c7db74693f8c7ceb4466dafc62536
parentde7056a3f95e85aa6bba30ad4b37a8dbc2b072ab
null: Switch to byte-based read/write

We are gradually moving away from sector-based interfaces, towards
byte-based.  Make the change for the last few sector-based callbacks
in the null-co and null-aio drivers.

Note that since the null driver does nothing on writes, it trivially
supports the BDRV_REQ_FUA flag (all writes have already landed to
the same bit-bucket without needing an extra flush call).  Also, since
the null driver does just as well with byte-based requests, we can
now avoid cycles wasted on read-modify-write by taking advantage of
the block layer now defaulting the alignment to 1 instead of 512.

Signed-off-by: Eric Blake <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/null.c
This page took 0.023737 seconds and 4 git commands to generate.