diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:48:01 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-06 10:48:01 -0500 |
commit | 415bd7740db3b74d3541ff349226fc8b8c7652ee (patch) | |
tree | 4ef1809f16a7f30f237840cdbfc5521afd4e8316 /block-migration.c | |
parent | 4c977805303dafaa346161f9312f9246133dfe27 (diff) | |
parent | 8076cdb2a524eb0f18ac6d23445c32c74d87c39d (diff) | |
download | qemu-415bd7740db3b74d3541ff349226fc8b8c7652ee.tar.gz qemu-415bd7740db3b74d3541ff349226fc8b8c7652ee.tar.bz2 qemu-415bd7740db3b74d3541ff349226fc8b8c7652ee.zip |
Merge remote branch 'kwolf/for-anthony' into staging
Diffstat (limited to 'block-migration.c')
-rw-r--r-- | block-migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block-migration.c b/block-migration.c index 533564c13c..7db6f02b96 100644 --- a/block-migration.c +++ b/block-migration.c @@ -236,7 +236,7 @@ static void init_blk_migration_it(void *opaque, BlockDriverState *bs) BlkMigDevState *bmds; int64_t sectors; - if (bs->type == BDRV_TYPE_HD) { + if (!bdrv_is_read_only(bs)) { sectors = bdrv_getlength(bs) >> BDRV_SECTOR_BITS; if (sectors == 0) { return; |