qed.c (f7ad538e1ea130c8b6f3abb06ad6c856242c799e) | qed.c (4f6fd3491cf0f768b135ed2e242bd1d1d2a2efec) |
---|---|
1/* 2 * QEMU Enhanced Disk Format 3 * 4 * Copyright IBM, Corp. 2010 5 * 6 * Authors: 7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> 8 * Anthony Liguori <aliguori@us.ibm.com> --- 585 unchanged lines hidden (view full) --- 594 ret = bdrv_pwrite(bs, header.l1_table_offset, l1_table, l1_size); 595 if (ret < 0) { 596 goto out; 597 } 598 599 ret = 0; /* success */ 600out: 601 g_free(l1_table); | 1/* 2 * QEMU Enhanced Disk Format 3 * 4 * Copyright IBM, Corp. 2010 5 * 6 * Authors: 7 * Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> 8 * Anthony Liguori <aliguori@us.ibm.com> --- 585 unchanged lines hidden (view full) --- 594 ret = bdrv_pwrite(bs, header.l1_table_offset, l1_table, l1_size); 595 if (ret < 0) { 596 goto out; 597 } 598 599 ret = 0; /* success */ 600out: 601 g_free(l1_table); |
602 bdrv_delete(bs); | 602 bdrv_unref(bs); |
603 return ret; 604} 605 606static int bdrv_qed_create(const char *filename, QEMUOptionParameter *options) 607{ 608 uint64_t image_size = 0; 609 uint32_t cluster_size = QED_DEFAULT_CLUSTER_SIZE; 610 uint32_t table_size = QED_DEFAULT_TABLE_SIZE; --- 986 unchanged lines hidden --- | 603 return ret; 604} 605 606static int bdrv_qed_create(const char *filename, QEMUOptionParameter *options) 607{ 608 uint64_t image_size = 0; 609 uint32_t cluster_size = QED_DEFAULT_CLUSTER_SIZE; 610 uint32_t table_size = QED_DEFAULT_TABLE_SIZE; --- 986 unchanged lines hidden --- |