qcow2.c (bb7d4d82b63bbde06c5584f94bfd9ba3b3e5ff3f) | qcow2.c (4f6fd3491cf0f768b135ed2e242bd1d1d2a2efec) |
---|---|
1/* 2 * Block driver for the QCOW version 2 format 3 * 4 * Copyright (c) 2004-2006 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 --- 1438 unchanged lines hidden (view full) --- 1447 qemu_co_mutex_unlock(&s->lock); 1448 if (ret < 0) { 1449 goto out; 1450 } 1451 } 1452 1453 ret = 0; 1454out: | 1/* 2 * Block driver for the QCOW version 2 format 3 * 4 * Copyright (c) 2004-2006 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 --- 1438 unchanged lines hidden (view full) --- 1447 qemu_co_mutex_unlock(&s->lock); 1448 if (ret < 0) { 1449 goto out; 1450 } 1451 } 1452 1453 ret = 0; 1454out: |
1455 bdrv_delete(bs); | 1455 bdrv_unref(bs); |
1456 return ret; 1457} 1458 1459static int qcow2_create(const char *filename, QEMUOptionParameter *options) 1460{ 1461 const char *backing_file = NULL; 1462 const char *backing_fmt = NULL; 1463 uint64_t sectors = 0; --- 444 unchanged lines hidden --- | 1456 return ret; 1457} 1458 1459static int qcow2_create(const char *filename, QEMUOptionParameter *options) 1460{ 1461 const char *backing_file = NULL; 1462 const char *backing_fmt = NULL; 1463 uint64_t sectors = 0; --- 444 unchanged lines hidden --- |