Revision d246673d block-migration.c
b/block-migration.c | ||
---|---|---|
236 | 236 |
BlkMigDevState *bmds; |
237 | 237 |
int64_t sectors; |
238 | 238 |
|
239 |
if (bs->type == BDRV_TYPE_HD) {
|
|
239 |
if (!bdrv_is_read_only(bs)) {
|
|
240 | 240 |
sectors = bdrv_getlength(bs) >> BDRV_SECTOR_BITS; |
241 | 241 |
if (sectors == 0) { |
242 | 242 |
return; |
Also available in: Unified diff