Changeset 33227 in vbox for trunk/src/VBox/Devices/Storage/testcase/vbox-img.cpp
- Timestamp:
- Oct 19, 2010 11:20:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/testcase/vbox-img.cpp
r33224 r33227 760 760 rc = VDCopy(pSrcDisk, VD_LAST_IMAGE, pDstDisk, pszDstFormat, 761 761 pszDstFilename, false, 0, uImageFlags, NULL, 762 VD_OPEN_FLAGS_NORMAL, NULL, pIfsImageOutput, NULL); 762 VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_SEQUENTIAL, NULL, 763 pIfsImageOutput, NULL); 763 764 if (RT_FAILURE(rc)) 764 765 { … … 899 900 RTR3Init(); 900 901 int rc; 902 int exitcode = 0; 901 903 902 904 g_pszProgName = RTPathFilename(argv[0]); … … 963 965 rc = VDInit(); 964 966 if (RT_FAILURE(rc)) 965 return errorSyntax("Initalizing backends failed! rc=%Rrc\n"); 967 { 968 errorSyntax("Initalizing backends failed! rc=%Rrc\n", rc); 969 return 1; 970 } 966 971 967 972 /* … … 990 995 handlerArg.argv = &argv[iCmdArg]; 991 996 992 rc= s_commandHandlers[commandIndex].handler(&handlerArg);997 exitcode = s_commandHandlers[commandIndex].handler(&handlerArg); 993 998 break; 994 999 } 995 1000 } 996 1001 if (!s_commandHandlers[commandIndex].command) 997 return errorSyntax("Invalid command '%s'", argv[iCmd]); 1002 { 1003 errorSyntax("Invalid command '%s'", argv[iCmd]); 1004 return 1; 1005 } 998 1006 999 1007 rc = VDShutdown(); 1000 1008 if (RT_FAILURE(rc)) 1001 return errorSyntax("Unloading backends failed! rc=%Rrc\n", rc); 1002 1003 return rc; 1009 { 1010 errorSyntax("Unloading backends failed! rc=%Rrc\n", rc); 1011 return 1; 1012 } 1013 1014 return exitcode; 1004 1015 } 1005 1016
Note:
See TracChangeset
for help on using the changeset viewer.