xemu/include/block
Fam Zheng 67a0fd2a9b 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>
2016-02-02 17:50:47 +01:00
..
accounting.h block: Update copyright of the accounting code 2015-11-12 16:22:47 +01:00
aio.h aio: Introduce aio-epoll.c 2015-11-09 09:59:47 +00:00
block_int.h block: Add "file" output parameter to block status query functions 2016-02-02 17:50:47 +01:00
block.h block: Add "file" output parameter to block status query functions 2016-02-02 17:50:47 +01:00
blockjob.h block: Add block job transactions 2015-11-12 16:22:44 +01:00
nbd.h nbd: Always call "close_fn" in nbd_client_new 2016-01-15 18:58:01 +01:00
qapi.h qmp: fill in the image field in BlockDeviceInfo 2015-04-28 15:36:09 +02:00
scsi.h typofixes - v4 2015-09-11 10:45:43 +03:00
snapshot.h migration: implement bdrv_all_find_vmstate_bs helper 2015-11-19 11:50:00 +01:00
thread-pool.h block: Rename BlockDriverCompletionFunc to BlockCompletionFunc 2014-10-20 13:41:27 +02:00
throttle-groups.h throttle: Remove throttle_group_lock/unlock() 2015-10-23 18:18:23 +02:00
write-threshold.h block: add event when disk usage exceeds threshold 2015-02-06 17:24:21 +01:00