diff options
author | Fam Zheng <famz@redhat.com> | 2016-01-26 11:58:48 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:30:22 -0600 |
commit | e3a5728e1ed51b58aaed21987925b33a99c74081 (patch) | |
tree | 6ba7b4c6fc3c899510ef25fdfe4151601885a509 /block/qapi.c | |
parent | 61bfaa43a45e8481387bbcb477319e738801714d (diff) | |
download | hqemu-e3a5728e1ed51b58aaed21987925b33a99c74081.zip hqemu-e3a5728e1ed51b58aaed21987925b33a99c74081.tar.gz |
block: Add "file" output parameter to block status query functions
The added parameter can be used to return the BDS pointer which the
valid offset is referring to. Its value should be ignored unless
BDRV_BLOCK_OFFSET_VALID in ret is set.
Until block drivers fill in the right value, let's clear it explicitly
right before calling .bdrv_get_block_status.
The "bs->file" condition in bdrv_co_get_block_status is kept now to keep iotest
case 102 passing, and will be fixed once all drivers return the right file
pointer.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1453780743-16806-2-git-send-email-famz@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qapi.c')
0 files changed, 0 insertions, 0 deletions