Changeset 34010 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Nov 11, 2010 8:17:47 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r33825 r34010 478 478 " [--sataportcount <1-30>]\n" 479 479 " [--hostiocache on|off]\n" 480 " [--bootable on|off]\n" 480 481 " [--remove]\n" 481 482 "\n"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r33904 r34010 666 666 const char *pszCtl = NULL; 667 667 ULONG ulValue = 0; 668 BOOL fBootable = FALSE; 668 669 Bstr storageCtlName; 669 670 … … 724 725 else 725 726 RTPrintf("Storage Controller Port Count (%u): %lu\n", i, ulValue); 727 728 storageCtl->COMGETTER(Bootable)(&fBootable); 729 if (details == VMINFO_MACHINEREADABLE) 730 RTPrintf("storagecontrollerbootable%u=\"%s\"\n", i, fBootable ? "on" : "off"); 731 else 732 RTPrintf("Storage Controller Bootable (%u): %s\n", i, fBootable ? "on" : "off"); 726 733 } 727 734 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r33540 r34010 647 647 { "--remove", 'r', RTGETOPT_REQ_NOTHING }, 648 648 { "--hostiocache", 'i', RTGETOPT_REQ_STRING }, 649 { "--bootable", 'b', RTGETOPT_REQ_STRING }, 649 650 }; 650 651 … … 657 658 const char *pszCtlType = NULL; 658 659 const char *pszHostIOCache = NULL; 660 const char *pszBootable = NULL; 659 661 ULONG satabootdev = ~0U; 660 662 ULONG sataidedev = ~0U; … … 728 730 } 729 731 732 case 'b': 733 { 734 pszBootable = ValueUnion.psz; 735 break; 736 } 737 730 738 default: 731 739 { … … 949 957 } 950 958 } 959 960 if ( pszBootable 961 && SUCCEEDED(rc)) 962 { 963 if (SUCCEEDED(rc)) 964 { 965 if (!RTStrICmp(pszBootable, "on")) 966 { 967 CHECK_ERROR(machine, SetStorageControllerBootable(Bstr(pszCtl).raw(), TRUE)); 968 } 969 else if (!RTStrICmp(pszBootable, "off")) 970 { 971 CHECK_ERROR(machine, SetStorageControllerBootable(Bstr(pszCtl).raw(), FALSE)); 972 } 973 else 974 { 975 errorArgument("Invalid --bootable argument '%s'", pszHostIOCache); 976 rc = E_FAIL; 977 } 978 } 979 else 980 { 981 errorArgument("Couldn't find the controller with the name: '%s'\n", pszCtl); 982 rc = E_FAIL; 983 } 984 } 951 985 } 952 986
Note:
See TracChangeset
for help on using the changeset viewer.