raw_bsd: add offset and size options
authorTomáš Golembiovský <tgolembi@redhat.com>
Mon, 31 Oct 2016 10:27:40 +0000 (11:27 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Oct 2016 15:52:39 +0000 (16:52 +0100)
commit2fdc70452a59484c85359dc8d5a0650245288781
tree6277fc0005b377633f326bfd6d28ec74fd73d948
parent7eb13c9daac7e02bcd4dc18ad4297a93ae34d235
raw_bsd: add offset and size options

Added two new options 'offset' and 'size'. This makes it possible to use
only part of the file as a device. This can be used e.g. to limit the
access only to single partition in a disk image or use a disk inside a
tar archive (like OVA).

When 'size' is specified we do our best to honour it.

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw_bsd.c
qapi/block-core.json