qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC PATCH 0/4] hmp/qmp: add snapshot option to nbd export


From: Fam Zheng
Subject: [Qemu-devel] [RFC PATCH 0/4] hmp/qmp: add snapshot option to nbd export
Date: Mon, 29 Jul 2013 12:25:28 +0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]