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
