OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53f1dfd
)
sheepdog: Assign bs to file in sd_co_get_block_status
author
Fam Zheng
<famz@redhat.com>
Tue, 26 Jan 2016 03:58:55 +0000
(11:58 +0800)
committer
Max Reitz
<mreitz@redhat.com>
Tue, 2 Feb 2016 16:50:47 +0000
(17:50 +0100)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id:
1453780743
-16806-9-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/sheepdog.c
patch
|
blob
|
history
diff --git
a/block/sheepdog.c
b/block/sheepdog.c
index
2ea05a6
..
a0098c1
100644
(file)
--- a/
block/sheepdog.c
+++ b/
block/sheepdog.c
@@
-2739,6
+2739,9
@@
sd_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
if (*pnum > nb_sectors) {
*pnum = nb_sectors;
}
+ if (ret > 0 && ret & BDRV_BLOCK_OFFSET_VALID) {
+ *file = bs;
+ }
return ret;
}