qcow.c (36125631e79d53ffb9365740f43f386e2171d116) qcow.c (4f6fd3491cf0f768b135ed2e242bd1d1d2a2efec)
1/*
2 * Block driver for the QCOW 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

--- 737 unchanged lines hidden (view full) ---

746 g_free(tmp);
747 goto exit;
748 }
749 }
750
751 g_free(tmp);
752 ret = 0;
753exit:
1/*
2 * Block driver for the QCOW 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

--- 737 unchanged lines hidden (view full) ---

746 g_free(tmp);
747 goto exit;
748 }
749 }
750
751 g_free(tmp);
752 ret = 0;
753exit:
754 bdrv_delete(qcow_bs);
754 bdrv_unref(qcow_bs);
755 return ret;
756}
757
758static int qcow_make_empty(BlockDriverState *bs)
759{
760 BDRVQcowState *s = bs->opaque;
761 uint32_t l1_length = s->l1_size * sizeof(uint64_t);
762 int ret;

--- 152 unchanged lines hidden ---
755 return ret;
756}
757
758static int qcow_make_empty(BlockDriverState *bs)
759{
760 BDRVQcowState *s = bs->opaque;
761 uint32_t l1_length = s->l1_size * sizeof(uint64_t);
762 int ret;

--- 152 unchanged lines hidden ---