qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH 0/4] hmp/qmp: add snapshot option to nbd export
@ 2013-07-29  4:25 Fam Zheng
  2013-07-29  4:25 ` [Qemu-devel] [RFC PATCH 1/4] block/backup: delete target after completion callback Fam Zheng
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Fam Zheng @ 2013-07-29  4:25 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, famz, imain, stefanha, pbonzini

This implements another way of doing image fleecing:

  (HMP) nbd_server_add -s drive0

or

  (QMP) nbd-server-add device=drive0 snapshot=on

It is one convenient command that starts drive-backup job on device for doing
COW to a newly created temporary image, we don't need manually creating image,
adding drive or overriding backing_hd of the target. The target_bs is internal
to nbd-server-add implementation and the export is deleted when block job is
cancelled or completed.

Fam Zheng (4):
  block/backup: delete target after completion callback
  nbd: call drive_put_ref() only if dinfo exists
  qmp: Add "snapshot=" option to nbd-server-add
  hmp: add -s switch to nbd_server_add

 block/backup.c   |  2 +-
 blockdev-nbd.c   | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 hmp-commands.hx  |  4 +--
 hmp.c            |  7 +++--
 qapi-schema.json |  3 ++-
 qmp-commands.hx  |  2 +-
 6 files changed, 89 insertions(+), 10 deletions(-)

-- 
1.8.3.4

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

end of thread, other threads:[~2013-08-26  8:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29  4:25 [Qemu-devel] [RFC PATCH 0/4] hmp/qmp: add snapshot option to nbd export Fam Zheng
2013-07-29  4:25 ` [Qemu-devel] [RFC PATCH 1/4] block/backup: delete target after completion callback Fam Zheng
2013-08-21 18:37   ` Eric Blake
2013-07-29  4:25 ` [Qemu-devel] [RFC PATCH 2/4] nbd: call drive_put_ref() only if dinfo exists Fam Zheng
2013-08-21 12:47   ` Stefan Hajnoczi
2013-07-29  4:25 ` [Qemu-devel] [RFC PATCH 3/4] qmp: Add "snapshot=" option to nbd-server-add Fam Zheng
2013-08-21 13:02   ` Stefan Hajnoczi
2013-08-21 18:40     ` Eric Blake
2013-08-22  8:53     ` Fam Zheng
2013-08-22  9:22       ` Paolo Bonzini
2013-08-22  9:42         ` Fam Zheng
2013-08-26  8:07         ` Fam Zheng
2013-08-21 18:42   ` Eric Blake
2013-07-29  4:25 ` [Qemu-devel] [RFC PATCH 4/4] hmp: add -s switch to nbd_server_add Fam Zheng

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).