projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fb58b0
)
Block migration fail, ignore error from bdrv_getlength
author
Shahar Havivi
<shaharh@redhat.com>
Sat, 10 Jul 2010 15:59:06 +0000
(18:59 +0300)
committer
Kevin Wolf
<kwolf@redhat.com>
Tue, 13 Jul 2010 15:48:17 +0000
(17:48 +0200)
When there is no block driver associate with BlockDriverState bdrv_getlength
returns -ENOMEDIUM that cause block migration to fail
Signed-off-by: Shahar Havivi <shaharh@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block-migration.c
patch
|
blob
|
history
diff --git
a/block-migration.c
b/block-migration.c
index 7db6f02b96ea2870654f4c2783df51814ec4d01c..a77106e25c8ad30fba1a8f4fdeb39dd7b8431375 100644
(file)
--- a/
block-migration.c
+++ b/
block-migration.c
@@
-238,7
+238,7
@@
static void init_blk_migration_it(void *opaque, BlockDriverState *bs)
if (!bdrv_is_read_only(bs)) {
sectors = bdrv_getlength(bs) >> BDRV_SECTOR_BITS;
- if (sectors
=
= 0) {
+ if (sectors
<
= 0) {
return;
}