From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzt3R-0005NN-5t for qemu-devel@nongnu.org; Wed, 25 Jun 2014 15:40:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzt3J-0000NA-J7 for qemu-devel@nongnu.org; Wed, 25 Jun 2014 15:40:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20495) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzt3J-0000Md-BP for qemu-devel@nongnu.org; Wed, 25 Jun 2014 15:40:17 -0400 From: Jeff Cody Date: Wed, 25 Jun 2014 15:40:08 -0400 Message-Id: Subject: [Qemu-devel] [PATCH v7 for 2.1 0/4] Allow custom backing-file string in commit/stream 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 This is part 2 of a split of "Modify block jobs to use node-names". These patches add a helper function, allow block-commit and block-stream to change backing files, and adds a standalone API to change backing files. The api to change backing files relies still on the "check active layer blocker" workaround on blockers. Jeff Cody (4): block: add helper function to determine if a BDS is in a chain block: extend block-commit to accept a string for the backing file block: add backing-file option to block-stream block: add QAPI command to allow live backing file change block.c | 19 ++++++- block/commit.c | 9 ++-- block/stream.c | 11 ++-- blockdev.c | 133 ++++++++++++++++++++++++++++++++++++++++++++-- hmp.c | 2 +- include/block/block.h | 4 +- include/block/block_int.h | 3 +- qapi/block-core.json | 99 ++++++++++++++++++++++++++++++++-- qmp-commands.hx | 95 ++++++++++++++++++++++++++++++++- 9 files changed, 350 insertions(+), 25 deletions(-) -- 1.9.3