All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v7 0/2] Add 'offset' and 'size' options
@ 2016-10-27 12:18 Tomáš Golembiovský
  2016-10-27 12:18 ` [Qemu-devel] [PATCH v7 1/2] raw_bsd: add offset and size options Tomáš Golembiovský
  2016-10-27 12:18 ` [Qemu-devel] [PATCH v7 2/2] qemu-iotests: test 'offset' and 'size' options in raw driver Tomáš Golembiovský
  0 siblings, 2 replies; 5+ messages in thread
From: Tomáš Golembiovský @ 2016-10-27 12:18 UTC (permalink / raw)
  To: qemu-devel
  Cc: Tomáš Golembiovský, Kevin Wolf, Max Reitz,
	Markus Armbruster, Eric Blake, Daniel P . Berrange, qemu-block

v6 -> v7:
- added tests

v5 -> v6:
- fix alignment check condition
- when size is not specified and device size is being used take offset
  into account

v4 -> v5:
- added two missing overflow checks
- comments from Eric Blake:
  - renamed 'fail' label to 'end'
  - fixed optional fields in JSON scheme
  - no punctuation at the end of error_setg() message
  - spaces around PRI* macros
  - using QEMU_IS_ALIGNED
  - typos

v3 -> v4:
- fix stupid compilation error and formatting issue

v2 -> v3:
- changed overflow check to make it clearer
- produce error instead of warning when size is not multiple of sector
  size

v1 -> v2:
- options were moved from 'file' driver into 'raw' driver as suggested
- added support for writing, reopen and truncate when possible


Tomáš Golembiovský (2):
  raw_bsd: add offset and size options
  qemu-iotests: test 'offset' and 'size' options in raw driver

 block/raw_bsd.c            | 176 ++++++++++++++++++++++++++++++++++++++++++++-
 qapi/block-core.json       |  16 ++++-
 tests/qemu-iotests/171     | 170 +++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/171.out | 173 ++++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/group   |   1 +
 5 files changed, 532 insertions(+), 4 deletions(-)
 create mode 100755 tests/qemu-iotests/171
 create mode 100644 tests/qemu-iotests/171.out

-- 
2.10.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-27 13:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-27 12:18 [Qemu-devel] [PATCH v7 0/2] Add 'offset' and 'size' options Tomáš Golembiovský
2016-10-27 12:18 ` [Qemu-devel] [PATCH v7 1/2] raw_bsd: add offset and size options Tomáš Golembiovský
2016-10-27 13:32   ` Kevin Wolf
2016-10-27 12:18 ` [Qemu-devel] [PATCH v7 2/2] qemu-iotests: test 'offset' and 'size' options in raw driver Tomáš Golembiovský
2016-10-27 13:47   ` Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.