From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkmDu-0003M6-Cw for qemu-devel@nongnu.org; Wed, 14 May 2014 23:20:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkmDp-0001qh-Hw for qemu-devel@nongnu.org; Wed, 14 May 2014 23:20:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkmDp-0001pj-3h for qemu-devel@nongnu.org; Wed, 14 May 2014 23:20:41 -0400 From: Jeff Cody Date: Wed, 14 May 2014 23:20:14 -0400 Message-Id: Subject: [Qemu-devel] [PATCH 0/5] block: Modify block-commit to use node-names List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, benoit.canet@irqsave.net, pkrempa@redhat.com, famz@redhat.com, stefanha@redhat.com Using node-names instead of filenames for block job operations over QMP is a superior method of identifying the block driver images to operate on, as it removes all pathname ambiguity. This series is the conversion of block-commit to allow use of node-names. Also, it allows the user to specify the string for the backing_file name to use in the overlay image. So that node-names can be used as desired for all block job operations, this series also auto-generates node-names for every BDS. User-specified node-names will override any autogenerated node-names. Subsequent patches will convert the remaining block operations (stream, backup, mirror) These patches can also be seen at: https://github.com/codyprime/qemu-kvm-jtc.git, tag block-commit-node-v1a Jeff Cody (5): block: Auto-generate node_names for each BDS entry block: add helper function to determine if a BDS is in a chain block: make 'top' argument to block-commit optional block: Accept node-name arguments for block-commit block: extend block-commit to accept a string for the backing file block.c | 33 ++++++++++++++++++++++++++++--- block/commit.c | 9 ++++++--- blockdev.c | 46 +++++++++++++++++++++++++++++++++++++++---- include/block/block.h | 4 +++- include/block/block_int.h | 3 ++- qapi-schema.json | 50 ++++++++++++++++++++++++++++++++++++++--------- qmp-commands.hx | 40 +++++++++++++++++++++++++++++++------ tests/qemu-iotests/040 | 28 ++++++++++++++++---------- 8 files changed, 176 insertions(+), 37 deletions(-) -- 1.8.3.1