diff options
| author | Eric Blake | 2018-04-24 21:25:03 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-05-15 16:11:41 +0200 |
| commit | b3241e9274ca1aafb94ad8683305bb383e11c766 (patch) | |
| tree | f51897bae35c7db74693f8c7ceb4466dafc62536 /block/commit.c | |
| parent | file-win32: Switch to byte-based callbacks (diff) | |
| download | qemu-b3241e9274ca1aafb94ad8683305bb383e11c766.tar.gz qemu-b3241e9274ca1aafb94ad8683305bb383e11c766.tar.xz qemu-b3241e9274ca1aafb94ad8683305bb383e11c766.zip | |
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 <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/commit.c')
0 files changed, 0 insertions, 0 deletions
