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:
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
7db6f02
..
a77106e
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;
}