qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH 2/8] block: allow block jobs in any arbitrary no


From: Max Reitz
Subject: Re: [Qemu-block] [PATCH 2/8] block: allow block jobs in any arbitrary node
Date: Wed, 22 Apr 2015 19:15:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 16.04.2015 17:12, Alberto Garcia wrote:
Currently, block jobs can only be owned by root nodes. This patch
allows block jobs to be in any arbitrary node, by making the following
changes:

- Block jobs can now be identified by the node name of their
   BlockDriverState in addition to the device name. Since both device
   and node names live in the same namespace there's no ambiguity.

- The "device" parameter used by all commands that operate on block
   jobs can also be a node name now.

- The node name is used as a fallback to fill in the BlockJobInfo
   structure and all BLOCK_JOB_* events if there is no device name for
   that job.

Signed-off-by: Alberto Garcia <address@hidden>
---
  block/mirror.c            |  5 +++--
  blockdev.c                | 16 ++++++++--------
  blockjob.c                | 18 ++++++++++--------
  docs/qmp/qmp-events.txt   |  8 ++++----
  include/qapi/qmp/qerror.h |  3 ---
  qapi/block-core.json      | 20 ++++++++++----------
  6 files changed, 35 insertions(+), 35 deletions(-)

Reviewed-by: Max Reitz <address@hidden>



reply via email to

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