qemu-img.c (a4c141dca466ed3e9451f147efe6304b1b659ff5) | qemu-img.c (54aa3de72ea2aaa2e903e7e879a4f3dda515a00e) |
---|---|
1/* 2 * QEMU disk image utility 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 1638 unchanged lines hidden (view full) --- 1647} 1648 1649/* Convenience wrapper around qmp_block_dirty_bitmap_merge */ 1650static void do_dirty_bitmap_merge(const char *dst_node, const char *dst_name, 1651 const char *src_node, const char *src_name, 1652 Error **errp) 1653{ 1654 BlockDirtyBitmapMergeSource *merge_src; | 1/* 2 * QEMU disk image utility 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 1638 unchanged lines hidden (view full) --- 1647} 1648 1649/* Convenience wrapper around qmp_block_dirty_bitmap_merge */ 1650static void do_dirty_bitmap_merge(const char *dst_node, const char *dst_name, 1651 const char *src_node, const char *src_name, 1652 Error **errp) 1653{ 1654 BlockDirtyBitmapMergeSource *merge_src; |
1655 BlockDirtyBitmapMergeSourceList *list; | 1655 BlockDirtyBitmapMergeSourceList *list = NULL; |
1656 1657 merge_src = g_new0(BlockDirtyBitmapMergeSource, 1); 1658 merge_src->type = QTYPE_QDICT; 1659 merge_src->u.external.node = g_strdup(src_node); 1660 merge_src->u.external.name = g_strdup(src_name); | 1656 1657 merge_src = g_new0(BlockDirtyBitmapMergeSource, 1); 1658 merge_src->type = QTYPE_QDICT; 1659 merge_src->u.external.node = g_strdup(src_node); 1660 merge_src->u.external.name = g_strdup(src_name); |
1661 list = g_new0(BlockDirtyBitmapMergeSourceList, 1); 1662 list->value = merge_src; | 1661 QAPI_LIST_PREPEND(list, merge_src); |
1663 qmp_block_dirty_bitmap_merge(dst_node, dst_name, list, errp); 1664 qapi_free_BlockDirtyBitmapMergeSourceList(list); 1665} 1666 1667enum ImgConvertBlockStatus { 1668 BLK_DATA, 1669 BLK_ZERO, 1670 BLK_BACKING_FILE, --- 3878 unchanged lines hidden --- | 1662 qmp_block_dirty_bitmap_merge(dst_node, dst_name, list, errp); 1663 qapi_free_BlockDirtyBitmapMergeSourceList(list); 1664} 1665 1666enum ImgConvertBlockStatus { 1667 BLK_DATA, 1668 BLK_ZERO, 1669 BLK_BACKING_FILE, --- 3878 unchanged lines hidden --- |