qcow2.c (34b5d2c68eb4082c288e70fb99c61af8f7b96fde) | qcow2.c (cc84d90ff54c025190dbe49ec5fea1268217c5f2) |
---|---|
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 --- 1351 unchanged lines hidden (view full) --- 1360 * 2 GB for 64k clusters, and we don't want to have a 2 GB initial file 1361 * size for any qcow2 image. 1362 */ 1363 BlockDriverState* bs; 1364 QCowHeader header; 1365 uint8_t* refcount_table; 1366 int ret; 1367 | 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 --- 1351 unchanged lines hidden (view full) --- 1360 * 2 GB for 64k clusters, and we don't want to have a 2 GB initial file 1361 * size for any qcow2 image. 1362 */ 1363 BlockDriverState* bs; 1364 QCowHeader header; 1365 uint8_t* refcount_table; 1366 int ret; 1367 |
1368 ret = bdrv_create_file(filename, options); | 1368 ret = bdrv_create_file(filename, options, NULL); |
1369 if (ret < 0) { 1370 return ret; 1371 } 1372 1373 ret = bdrv_file_open(&bs, filename, NULL, BDRV_O_RDWR, NULL); 1374 if (ret < 0) { 1375 return ret; 1376 } --- 733 unchanged lines hidden --- | 1369 if (ret < 0) { 1370 return ret; 1371 } 1372 1373 ret = bdrv_file_open(&bs, filename, NULL, BDRV_O_RDWR, NULL); 1374 if (ret < 0) { 1375 return ret; 1376 } --- 733 unchanged lines hidden --- |