qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v13 00/14] qemu-img: Implement commit like QMP
@ 2014-10-22 12:51 Max Reitz
  2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 01/14] qcow2: Allow "full" discard Max Reitz
                   ` (13 more replies)
  0 siblings, 14 replies; 43+ messages in thread
From: Max Reitz @ 2014-10-22 12:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Stefan Hajnoczi, Max Reitz

qemu-img should use QMP commands whenever possible in order to ensure
feature completeness of both online and offline image operations. For
the "commit" command, this is relatively easy, so implement it first
(in the hope that indeed others will follow).

As qemu-img does not have access to QMP (due to QMP being intertwined
with basically everything in qemu), we cannot directly use QMP, but at
least use the functions the corresponding QMP commands are using (which
would be "block-commit", in this case).


This series depends on my series
"[PATCH v8 00/17] qcow2: Fix image repairing" (or on any later version).


v13:
- Patch 3:
  - Use fallback code not only for images with internal snapshots, but
    also for compat=0.10 [Eric]
  - Use an anonymous struct for l1_ofs_rt_ofs_cls instead of a
    20 byte array [Eric]
- Patch 8:
  - Rebase conflict due to the null block driver
  - Rebase conflicts due to BlockBackend
- Patch 14: Force compat=1.1 [Eric]


git-backport-diff against v12:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch
[down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/14:[----] [--] 'qcow2: Allow "full" discard'
002/14:[----] [--] 'qcow2: Implement bdrv_make_empty()'
003/14:[0020] [FC] 'qcow2: Optimize bdrv_make_empty()'
004/14:[----] [-C] 'blockjob: Introduce block_job_complete_sync()'
005/14:[----] [--] 'blockjob: Add "ready" field'
006/14:[----] [--] 'iotests: Omit length/offset test in 040 and 041'
007/14:[----] [--] 'block/mirror: Improve progress report'
008/14:[0008] [FC] 'qemu-img: Implement commit like QMP'
009/14:[----] [-C] 'qemu-img: Empty image after commit'
010/14:[----] [-C] 'qemu-img: Enable progress output for commit'
011/14:[----] [-C] 'qemu-img: Specify backing file for commit'
012/14:[----] [-C] 'iotests: Add _filter_qemu_img_map'
013/14:[----] [-C] 'iotests: Add test for backing-chain commits'
014/14:[0001] [FC] 'iotests: Add test for qcow2's bdrv_make_empty'


Max Reitz (14):
  qcow2: Allow "full" discard
  qcow2: Implement bdrv_make_empty()
  qcow2: Optimize bdrv_make_empty()
  blockjob: Introduce block_job_complete_sync()
  blockjob: Add "ready" field
  iotests: Omit length/offset test in 040 and 041
  block/mirror: Improve progress report
  qemu-img: Implement commit like QMP
  qemu-img: Empty image after commit
  qemu-img: Enable progress output for commit
  qemu-img: Specify backing file for commit
  iotests: Add _filter_qemu_img_map
  iotests: Add test for backing-chain commits
  iotests: Add test for qcow2's bdrv_make_empty

 block/Makefile.objs              |   3 +-
 block/blkdebug.c                 |   2 +
 block/mirror.c                   |  34 +++++----
 block/qcow2-cluster.c            |  27 ++++---
 block/qcow2-snapshot.c           |   2 +-
 block/qcow2.c                    | 142 ++++++++++++++++++++++++++++++++++++-
 block/qcow2.h                    |   2 +-
 blockjob.c                       |  42 +++++++++--
 include/block/block.h            |   2 +
 include/block/blockjob.h         |  20 ++++++
 qapi/block-core.json             |   4 +-
 qemu-img-cmds.hx                 |   4 +-
 qemu-img.c                       | 148 +++++++++++++++++++++++++++++++++------
 qemu-img.texi                    |  13 +++-
 tests/qemu-iotests/040           |   4 +-
 tests/qemu-iotests/041           |   3 +-
 tests/qemu-iotests/097           | 122 ++++++++++++++++++++++++++++++++
 tests/qemu-iotests/097.out       | 119 +++++++++++++++++++++++++++++++
 tests/qemu-iotests/098           |  79 +++++++++++++++++++++
 tests/qemu-iotests/098.out       |  45 ++++++++++++
 tests/qemu-iotests/common.filter |   7 ++
 tests/qemu-iotests/group         |   2 +
 tests/qemu-iotests/iotests.py    |   3 +-
 23 files changed, 761 insertions(+), 68 deletions(-)
 create mode 100755 tests/qemu-iotests/097
 create mode 100644 tests/qemu-iotests/097.out
 create mode 100755 tests/qemu-iotests/098
 create mode 100644 tests/qemu-iotests/098.out

-- 
1.9.3

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

end of thread, other threads:[~2014-10-23 14:00 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 12:51 [Qemu-devel] [PATCH v13 00/14] qemu-img: Implement commit like QMP Max Reitz
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 01/14] qcow2: Allow "full" discard Max Reitz
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 02/14] qcow2: Implement bdrv_make_empty() Max Reitz
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty() Max Reitz
2014-10-22 16:04   ` Eric Blake
2014-10-22 18:35   ` Kevin Wolf
2014-10-23  7:46     ` Max Reitz
2014-10-23  8:29       ` Kevin Wolf
2014-10-23  8:36         ` Max Reitz
2014-10-23  8:41           ` Kevin Wolf
2014-10-23  9:11             ` Max Reitz
2014-10-23  9:42               ` Kevin Wolf
2014-10-23  9:44                 ` Max Reitz
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 04/14] blockjob: Introduce block_job_complete_sync() Max Reitz
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 05/14] blockjob: Add "ready" field Max Reitz
2014-10-23 10:01   ` Kevin Wolf
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 06/14] iotests: Omit length/offset test in 040 and 041 Max Reitz
2014-10-23 10:06   ` Kevin Wolf
2014-10-23 10:07     ` Max Reitz
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 07/14] block/mirror: Improve progress report Max Reitz
2014-10-23 10:52   ` Kevin Wolf
2014-10-23 11:09     ` Max Reitz
2014-10-23 12:03       ` Kevin Wolf
2014-10-23 13:10     ` Eric Blake
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 08/14] qemu-img: Implement commit like QMP Max Reitz
2014-10-22 16:22   ` Eric Blake
2014-10-23 11:59   ` Kevin Wolf
2014-10-23 12:35     ` Max Reitz
2014-10-23 12:40       ` Kevin Wolf
2014-10-23 12:44         ` Max Reitz
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 09/14] qemu-img: Empty image after commit Max Reitz
2014-10-23 12:55   ` Kevin Wolf
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 10/14] qemu-img: Enable progress output for commit Max Reitz
2014-10-23 13:00   ` Kevin Wolf
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 11/14] qemu-img: Specify backing file " Max Reitz
2014-10-23 13:05   ` Kevin Wolf
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 12/14] iotests: Add _filter_qemu_img_map Max Reitz
2014-10-23 13:08   ` Kevin Wolf
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 13/14] iotests: Add test for backing-chain commits Max Reitz
2014-10-23 13:24   ` Kevin Wolf
2014-10-22 12:51 ` [Qemu-devel] [PATCH v13 14/14] iotests: Add test for qcow2's bdrv_make_empty Max Reitz
2014-10-22 17:05   ` Eric Blake
2014-10-23 13:30   ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).