Changeset 54430 in vbox
- Timestamp:
- Feb 24, 2015 10:43:16 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vd-image-backend.h
r50988 r54430 4 4 5 5 /* 6 * Copyright (C) 2006-201 4Oracle Corporation6 * Copyright (C) 2006-2015 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 139 139 * @param pVDIfsImage Pointer to the per-image VD interface list. 140 140 * @param pVDIfsOperation Pointer to the per-operation VD interface list. 141 * @param enmType Requested type of the image. 141 142 * @param ppBackendData Opaque state data for this image. 142 143 */ … … 150 151 PVDINTERFACE pVDIfsImage, 151 152 PVDINTERFACE pVDIfsOperation, 153 VDTYPE enmType, 152 154 void **ppBackendData)); 153 155 -
trunk/src/VBox/Storage/DMG.cpp
r50988 r54430 5 5 6 6 /* 7 * Copyright (C) 2010-201 3Oracle Corporation7 * Copyright (C) 2010-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1802 1802 VDTYPE enmType, void **ppBackendData) 1803 1803 { 1804 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData)); 1804 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 1805 1806 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 1805 1807 1806 1808 /* Check open flags. All valid flags are (in principle) supported. */ … … 1856 1858 unsigned uPercentStart, unsigned uPercentSpan, 1857 1859 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1858 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 1859 { 1860 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p", pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 1860 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 1861 void **ppBackendData) 1862 { 1863 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 1864 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 1861 1865 int rc = VERR_NOT_SUPPORTED; 1862 1866 -
trunk/src/VBox/Storage/ISCSI.cpp
r54138 r54430 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 4567 4567 VDTYPE enmType, void **ppBackendData) 4568 4568 { 4569 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));4569 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 4570 4570 int rc; 4571 4571 PISCSIIMAGE pImage; 4572 4573 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 4572 4574 4573 4575 /* Check open flags. All valid flags are supported. */ … … 4631 4633 unsigned uPercentStart, unsigned uPercentSpan, 4632 4634 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 4633 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 4634 { 4635 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p", pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 4635 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 4636 void **ppBackendData) 4637 { 4638 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 4639 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 4636 4640 int rc = VERR_NOT_SUPPORTED; 4637 4641 -
trunk/src/VBox/Storage/Parallels.cpp
r50988 r54430 6 6 7 7 /* 8 * Copyright (C) 2006-201 3Oracle Corporation8 * Copyright (C) 2006-2015 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 422 422 VDTYPE enmType, void **ppBackendData) 423 423 { 424 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));424 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 425 425 int rc; 426 426 PPARALLELSIMAGE pImage; 427 428 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 427 429 428 430 /* Check open flags. All valid flags are supported. */ … … 473 475 unsigned uPercentSpan, PVDINTERFACE pVDIfsDisk, 474 476 PVDINTERFACE pVDIfsImage, 475 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 476 { 477 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p", 478 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 477 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 478 void **ppBackendData) 479 { 480 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 481 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 479 482 int rc = VINF_SUCCESS; 480 483 PPARALLELSIMAGE pImage; … … 487 490 pfnProgress = pIfProgress->pfnProgress; 488 491 pvUser = pIfProgress->Core.pvUser; 492 } 493 494 /* Check the VD container type. */ 495 if (enmType != VDTYPE_HDD) 496 { 497 rc = VERR_VD_INVALID_TYPE; 498 goto out; 489 499 } 490 500 -
trunk/src/VBox/Storage/QCOW.cpp
r51626 r54430 5 5 6 6 /* 7 * Copyright (C) 2011-201 3Oracle Corporation7 * Copyright (C) 2011-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1495 1495 VDTYPE enmType, void **ppBackendData) 1496 1496 { 1497 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));1497 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 1498 1498 int rc; 1499 1499 PQCOWIMAGE pImage; 1500 1501 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 1500 1502 1501 1503 /* Check open flags. All valid flags are supported. */ … … 1544 1546 unsigned uPercentStart, unsigned uPercentSpan, 1545 1547 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1546 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 1547 { 1548 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p", 1549 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 1548 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 1549 void **ppBackendData) 1550 { 1551 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 1552 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 1550 1553 int rc; 1551 1554 PQCOWIMAGE pImage; … … 1558 1561 pfnProgress = pIfProgress->pfnProgress; 1559 1562 pvUser = pIfProgress->Core.pvUser; 1563 } 1564 1565 /* Check the VD container type. */ 1566 if (enmType != VDTYPE_HDD) 1567 { 1568 rc = VERR_VD_INVALID_TYPE; 1569 goto out; 1560 1570 } 1561 1571 -
trunk/src/VBox/Storage/QED.cpp
r51680 r54430 5 5 6 6 /* 7 * Copyright (C) 2011-201 4Oracle Corporation7 * Copyright (C) 2011-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1589 1589 VDTYPE enmType, void **ppBackendData) 1590 1590 { 1591 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));1591 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 1592 1592 int rc; 1593 1593 PQEDIMAGE pImage; 1594 1595 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 1594 1596 1595 1597 /* Check open flags. All valid flags are supported. */ … … 1638 1640 unsigned uPercentStart, unsigned uPercentSpan, 1639 1641 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1640 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 1641 { 1642 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p", 1643 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 1642 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 1643 void **ppBackendData) 1644 { 1645 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType, ppBackendData=%#p", 1646 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 1644 1647 int rc; 1645 1648 PQEDIMAGE pImage; … … 1652 1655 pfnProgress = pIfProgress->pfnProgress; 1653 1656 pvUser = pIfProgress->Core.pvUser; 1657 } 1658 1659 /* Check the VD container type. */ 1660 if (enmType != VDTYPE_HDD) 1661 { 1662 rc = VERR_VD_INVALID_TYPE; 1663 goto out; 1654 1664 } 1655 1665 -
trunk/src/VBox/Storage/RAW.cpp
r54397 r54430 427 427 VDTYPE enmType, void **ppBackendData) 428 428 { 429 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));429 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 430 430 int rc; 431 431 PRAWIMAGE pImage; 432 433 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 432 434 433 435 /* Check open flags. All valid flags are supported. */ … … 482 484 unsigned uPercentStart, unsigned uPercentSpan, 483 485 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 484 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 485 { 486 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p", pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 486 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 487 void **ppBackendData) 488 { 489 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 490 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 487 491 int rc; 488 492 PRAWIMAGE pImage; … … 495 499 pfnProgress = pIfProgress->pfnProgress; 496 500 pvUser = pIfProgress->Core.pvUser; 501 } 502 503 /* Check the VD container type. Yes, hard disk must be allowed, otherwise 504 * various tools using this backend for hard disk images will fail. */ 505 if (enmType != VDTYPE_HDD && enmType != VDTYPE_DVD && enmType != VDTYPE_FLOPPY) 506 { 507 rc = VERR_VD_INVALID_TYPE; 508 goto out; 497 509 } 498 510 -
trunk/src/VBox/Storage/VD.cpp
r54340 r54430 6996 6996 pImage->pVDIfsImage, 6997 6997 pVDIfsOperation, 6998 pDisk->enmType, 6998 6999 &pImage->pBackendData); 6999 7000 … … 7273 7274 pImage->pVDIfsImage, 7274 7275 pVDIfsOperation, 7276 pDisk->enmType, 7275 7277 &pImage->pBackendData); 7276 7278 -
trunk/src/VBox/Storage/VDI.cpp
r54117 r54430 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1351 1351 VDTYPE enmType, void **ppBackendData) 1352 1352 { 1353 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));1353 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 1354 1354 int rc; 1355 1355 PVDIIMAGEDESC pImage; 1356 1357 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 1356 1358 1357 1359 /* Check open flags. All valid flags are supported. */ … … 1400 1402 unsigned uPercentStart, unsigned uPercentSpan, 1401 1403 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1402 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 1403 { 1404 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p\n", pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 1404 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 1405 void **ppBackendData) 1406 { 1407 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p\n", 1408 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 1405 1409 int rc; 1406 1410 PVDIIMAGEDESC pImage; … … 1419 1423 /* Check the image flags. */ 1420 1424 if ((uImageFlags & ~VD_VDI_IMAGE_FLAGS_MASK) != 0) 1425 { 1426 rc = VERR_VD_INVALID_TYPE; 1427 goto out; 1428 } 1429 1430 /* Check the VD container type. */ 1431 if (enmType != VDTYPE_HDD) 1421 1432 { 1422 1433 rc = VERR_VD_INVALID_TYPE; -
trunk/src/VBox/Storage/VHD.cpp
r54117 r54430 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1297 1297 VDTYPE enmType, void **ppBackendData) 1298 1298 { 1299 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));1299 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 1300 1300 int rc = VINF_SUCCESS; 1301 1301 PVHDIMAGE pImage; 1302 1303 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 1302 1304 1303 1305 /* Check open flags. All valid flags are supported. */ … … 1346 1348 unsigned uPercentStart, unsigned uPercentSpan, 1347 1349 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1348 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 1349 { 1350 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p", pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 1350 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 1351 void **ppBackendData) 1352 { 1353 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 1354 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 1351 1355 int rc = VINF_SUCCESS; 1352 1356 PVHDIMAGE pImage; … … 1359 1363 pfnProgress = pIfProgress->pfnProgress; 1360 1364 pvUser = pIfProgress->Core.pvUser; 1365 } 1366 1367 /* Check the VD container type. */ 1368 if (enmType != VDTYPE_HDD) 1369 { 1370 rc = VERR_VD_INVALID_TYPE; 1371 goto out; 1361 1372 } 1362 1373 -
trunk/src/VBox/Storage/VHDX.cpp
r50988 r54430 5 5 6 6 /* 7 * Copyright (C) 2012-201 3Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1792 1792 VDTYPE enmType, void **ppBackendData) 1793 1793 { 1794 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));1794 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 1795 1795 int rc; 1796 1796 PVHDXIMAGE pImage; 1797 1798 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 1797 1799 1798 1800 /* Check open flags. All valid flags are supported. */ … … 1822 1824 1823 1825 LogFlowFunc(("returns %Rrc (pBackendData=%#p)\n", rc, *ppBackendData)); 1826 return rc; 1827 } 1828 1829 /** @interface_method_impl{VBOXHDDBACKEND,pfnCreate} */ 1830 static DECLCALLBACK(int) vhdxCreate(const char *pszFilename, uint64_t cbSize, 1831 unsigned uImageFlags, const char *pszComment, 1832 PCVDGEOMETRY pPCHSGeometry, PCVDGEOMETRY pLCHSGeometry, 1833 PCRTUUID pUuid, unsigned uOpenFlags, 1834 unsigned uPercentStart, unsigned uPercentSpan, 1835 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1836 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 1837 void **ppBackendData) 1838 { 1839 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p", 1840 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 1841 int rc = VERR_NOT_SUPPORTED; 1842 1843 LogFlowFunc(("returns %Rrc\n", rc)); 1824 1844 return rc; 1825 1845 } … … 2448 2468 vhdxOpen, 2449 2469 /* pfnCreate */ 2450 NULL,2470 vhdxCreate, 2451 2471 /* pfnRename */ 2452 2472 vhdxRename, -
trunk/src/VBox/Storage/VMDK.cpp
r54117 r54430 5 5 6 6 /* 7 * Copyright (C) 2006-201 3Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 5264 5264 VDTYPE enmType, void **ppBackendData) 5265 5265 { 5266 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, ppBackendData));5266 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); 5267 5267 int rc; 5268 5268 PVMDKIMAGE pImage; 5269 5270 NOREF(enmType); /**< @todo r=klaus make use of the type info. */ 5269 5271 5270 5272 /* Check open flags. All valid flags are supported. */ … … 5317 5319 unsigned uPercentStart, unsigned uPercentSpan, 5318 5320 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 5319 PVDINTERFACE pVDIfsOperation, void **ppBackendData) 5320 { 5321 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p ppBackendData=%#p\n", pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, ppBackendData)); 5321 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 5322 void **ppBackendData) 5323 { 5324 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%u ppBackendData=%#p\n", 5325 pszFilename, cbSize, uImageFlags, pszComment, pPCHSGeometry, pLCHSGeometry, pUuid, uOpenFlags, uPercentStart, uPercentSpan, pVDIfsDisk, pVDIfsImage, pVDIfsOperation, enmType, ppBackendData)); 5322 5326 int rc; 5323 5327 PVMDKIMAGE pImage; … … 5334 5338 /* Check the image flags. */ 5335 5339 if ((uImageFlags & ~VD_VMDK_IMAGE_FLAGS_MASK) != 0) 5340 { 5341 rc = VERR_VD_INVALID_TYPE; 5342 goto out; 5343 } 5344 5345 /* Check the VD container type. */ 5346 if (enmType != VDTYPE_HDD) 5336 5347 { 5337 5348 rc = VERR_VD_INVALID_TYPE;
Note:
See TracChangeset
for help on using the changeset viewer.