block-dirty-bitmap.c (5deb6cbd1fae10197623a74b0734a468ec80c609) | block-dirty-bitmap.c (ef9041a7b8c46001c8c44eab3eac9920739d9b36) |
---|---|
1/* 2 * Block dirty bitmap postcopy migration 3 * 4 * Copyright IBM, Corp. 2009 5 * Copyright (c) 2016-2017 Virtuozzo International GmbH. All rights reserved. 6 * 7 * Authors: 8 * Liran Schour <lirans@il.ibm.com> --- 269 unchanged lines hidden (view full) --- 278 dirty_bitmap_mig_state.bulk_completed = false; 279 dirty_bitmap_mig_state.prev_bs = NULL; 280 dirty_bitmap_mig_state.prev_bitmap = NULL; 281 dirty_bitmap_mig_state.no_bitmaps = false; 282 283 for (bs = bdrv_next_all_states(NULL); bs; bs = bdrv_next_all_states(bs)) { 284 const char *name = bdrv_get_device_or_node_name(bs); 285 | 1/* 2 * Block dirty bitmap postcopy migration 3 * 4 * Copyright IBM, Corp. 2009 5 * Copyright (c) 2016-2017 Virtuozzo International GmbH. All rights reserved. 6 * 7 * Authors: 8 * Liran Schour <lirans@il.ibm.com> --- 269 unchanged lines hidden (view full) --- 278 dirty_bitmap_mig_state.bulk_completed = false; 279 dirty_bitmap_mig_state.prev_bs = NULL; 280 dirty_bitmap_mig_state.prev_bitmap = NULL; 281 dirty_bitmap_mig_state.no_bitmaps = false; 282 283 for (bs = bdrv_next_all_states(NULL); bs; bs = bdrv_next_all_states(bs)) { 284 const char *name = bdrv_get_device_or_node_name(bs); 285 |
286 for (bitmap = bdrv_dirty_bitmap_next(bs, NULL); bitmap; 287 bitmap = bdrv_dirty_bitmap_next(bs, bitmap)) 288 { | 286 FOR_EACH_DIRTY_BITMAP(bs, bitmap) { |
289 if (!bdrv_dirty_bitmap_name(bitmap)) { 290 continue; 291 } 292 293 if (!name || strcmp(name, "") == 0) { 294 error_report("Found bitmap '%s' in unnamed node %p. It can't " 295 "be migrated", bdrv_dirty_bitmap_name(bitmap), bs); 296 goto fail; --- 442 unchanged lines hidden --- | 287 if (!bdrv_dirty_bitmap_name(bitmap)) { 288 continue; 289 } 290 291 if (!name || strcmp(name, "") == 0) { 292 error_report("Found bitmap '%s' in unnamed node %p. It can't " 293 "be migrated", bdrv_dirty_bitmap_name(bitmap), bs); 294 goto fail; --- 442 unchanged lines hidden --- |