raw_bsd: Convert to byte-based interface
commitdecaeed7734bddc95e2c81858fbbec3e923310a1
authorEric Blake <eblake@redhat.com>
Fri, 15 Jul 2016 23:23:08 +0000 (15 17:23 -0600)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 20 Jul 2016 13:24:25 +0000 (20 14:24 +0100)
tree86d24c2194d3bec24ab42e9589aa603fe2438891
parent70c4fb2648f31fcfd69296dd4f2b1b664572270f
raw_bsd: Convert to byte-based interface

Since the raw format driver is just passing things through, we can
do byte-based read and write if the underlying protocol does
likewise.

There's one tricky part - if we probed the image format, we document
that we restrict operations on the initial sector.  It's easiest to
keep this guarantee by enforcing read-modify-write on sub-sector
operations (yes, this partially reverts commit ad82be2f).

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 1468624988-423-20-git-send-email-eblake@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw_bsd.c