Changeset 67511 in vbox for trunk/src/VBox/Runtime/common/fs/isomakercmd.cpp
- Timestamp:
- Jun 20, 2017 2:30:30 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116250
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/isomakercmd.cpp
r67502 r67511 1397 1397 static int rtFsIsoMakerCmdOptImportIso(PRTFSISOMAKERCMDOPTS pOpts, const char *pszIsoSpec) 1398 1398 { 1399 uint32_t offError = UINT32_MAX; 1400 RTERRINFOSTATIC ErrInfo; 1401 int rc = RTFsIsoMakerImport(pOpts->hIsoMaker, pszIsoSpec, 0 /*fFlags*/, &offError, RTErrInfoInitStatic(&ErrInfo)); 1399 RTFSISOMAKERIMPORTRESULTS Results; 1400 RTERRINFOSTATIC ErrInfo; 1401 int rc = RTFsIsoMakerImport(pOpts->hIsoMaker, pszIsoSpec, 0 /*fFlags*/, &Results, RTErrInfoInitStatic(&ErrInfo)); 1402 1403 pOpts->cItemsAdded += Results.cAddedFiles; 1404 pOpts->cItemsAdded += Results.cAddedDirs; 1405 pOpts->cItemsAdded += Results.cBootCatEntries; 1406 pOpts->cItemsAdded += Results.cbSysArea != 0 ? 1 : 0; 1407 1408 rtFsIsoMakerPrintf(pOpts, "ISO imported statistics for '%s'\n", pszIsoSpec); 1409 rtFsIsoMakerPrintf(pOpts, " cAddedNames: %'14RU32\n", Results.cAddedNames); 1410 rtFsIsoMakerPrintf(pOpts, " cAddedDirs: %'14RU32\n", Results.cAddedDirs); 1411 rtFsIsoMakerPrintf(pOpts, " cbAddedDataBlocks: %'14RU64 bytes\n", Results.cbAddedDataBlocks); 1412 rtFsIsoMakerPrintf(pOpts, " cAddedFiles: %'14RU32\n", Results.cAddedFiles); 1413 if (Results.cBootCatEntries == UINT32_MAX) 1414 rtFsIsoMakerPrintf(pOpts, " cBootCatEntries: none\n"); 1415 else 1416 rtFsIsoMakerPrintf(pOpts, " cBootCatEntries: %'14RU32\n", Results.cBootCatEntries); 1417 rtFsIsoMakerPrintf(pOpts, " cbSysArea: %'14RU32\n", Results.cbSysArea); 1418 rtFsIsoMakerPrintf(pOpts, " cErrors: %'14RU32\n", Results.cErrors); 1419 1402 1420 if (RT_SUCCESS(rc)) 1403 1421 return rc; 1404 if ( offError != UINT32_MAX)1405 return rtFsIsoMakerCmdChainError(pOpts, "RTFsIsoMakerImport", pszIsoSpec, rc, offError, &ErrInfo.Core);1422 if (Results.offError != UINT32_MAX) 1423 return rtFsIsoMakerCmdChainError(pOpts, "RTFsIsoMakerImport", pszIsoSpec, rc, Results.offError, &ErrInfo.Core); 1406 1424 if (RTErrInfoIsSet(&ErrInfo.Core)) 1407 1425 return rtFsIsoMakerCmdErrorRc(pOpts, rc, "RTFsIsoMakerImport failed: %Rrc - %s", rc, ErrInfo.Core.pszMsg);
Note:
See TracChangeset
for help on using the changeset viewer.