block-dirty-bitmap.c (66e01f1cdc9663660201cced4df8ec0a28937919) | block-dirty-bitmap.c (93393e698c76c9b95b1fcf9649eef41f9cdbbb07) |
---|---|
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> --- 601 unchanged lines hidden (view full) --- 610 } 611 612 bs = blk_bs(blk); 613 614 /* Skip filters without bitmaps */ 615 while (bs && bs->drv && bs->drv->is_filter && 616 !bdrv_has_named_bitmaps(bs)) 617 { | 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> --- 601 unchanged lines hidden (view full) --- 610 } 611 612 bs = blk_bs(blk); 613 614 /* Skip filters without bitmaps */ 615 while (bs && bs->drv && bs->drv->is_filter && 616 !bdrv_has_named_bitmaps(bs)) 617 { |
618 if (bs->backing) { 619 bs = bs->backing->bs; 620 } else if (bs->file) { 621 bs = bs->file->bs; 622 } else { 623 bs = NULL; 624 } | 618 bs = bdrv_filter_bs(bs); |
625 } 626 627 if (bs && bs->drv && !bs->drv->is_filter) { 628 if (add_bitmaps_to_list(s, bs, name, NULL)) { 629 goto fail; 630 } 631 g_hash_table_add(handled_by_blk, bs); 632 } --- 606 unchanged lines hidden --- | 619 } 620 621 if (bs && bs->drv && !bs->drv->is_filter) { 622 if (add_bitmaps_to_list(s, bs, name, NULL)) { 623 goto fail; 624 } 625 g_hash_table_add(handled_by_blk, bs); 626 } --- 606 unchanged lines hidden --- |