Changeset 31976 in vbox for trunk/src/VBox
- Timestamp:
- Aug 26, 2010 9:45:33 AM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r31779 r31976 321 321 #endif 322 322 ); 323 RTPrintf(" [--faulttolerance master|standby]\n" 324 " [--faulttoleranceaddress <name>]\n" 325 " [--faulttoleranceport <port>]\n" 326 " [--faulttolerancesyncinterval <msec>]\n" 327 " [--faulttolerancepassword <password>]\n" 328 ); 329 323 330 RTPrintf("\n"); 324 331 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r31615 r31976 156 156 MODIFYVM_HPET, 157 157 MODIFYVM_IOCACHE, 158 MODIFYVM_IOCACHESIZE 158 MODIFYVM_IOCACHESIZE, 159 MODIFYVM_FAULT_TOLERANCE, 160 MODIFYVM_FAULT_TOLERANCE_ADDRESS, 161 MODIFYVM_FAULT_TOLERANCE_PORT, 162 MODIFYVM_FAULT_TOLERANCE_PASSWORD, 163 MODIFYVM_FAULT_TOLERANCE_SYNC_INTERVAL, 159 164 }; 160 165 … … 266 271 { "--iocache", MODIFYVM_IOCACHE, RTGETOPT_REQ_BOOL_ONOFF }, 267 272 { "--iocachesize", MODIFYVM_IOCACHESIZE, RTGETOPT_REQ_UINT32 }, 273 { "--iocachesize", MODIFYVM_IOCACHESIZE, RTGETOPT_REQ_UINT32 }, 274 { "--faulttolerance", MODIFYVM_FAULT_TOLERANCE, RTGETOPT_REQ_STRING }, 275 { "--faulttoleranceaddress", MODIFYVM_FAULT_TOLERANCE_ADDRESS, RTGETOPT_REQ_STRING }, 276 { "--faulttoleranceport", MODIFYVM_FAULT_TOLERANCE_PORT, RTGETOPT_REQ_UINT32 }, 277 { "--faulttolerancepassword", MODIFYVM_FAULT_TOLERANCE_PASSWORD, RTGETOPT_REQ_STRING }, 278 { "--faulttolerancesyncinterval", MODIFYVM_FAULT_TOLERANCE_SYNC_INTERVAL, RTGETOPT_REQ_UINT32 }, 268 279 }; 269 280 … … 1902 1913 } 1903 1914 1915 case MODIFYVM_FAULT_TOLERANCE: 1916 { 1917 if (!strcmp(ValueUnion.psz, "master")) 1918 { 1919 CHECK_ERROR(machine, COMSETTER(FaultToleranceState(FaultToleranceState_Master))); 1920 } 1921 else 1922 if (!strcmp(ValueUnion.psz, "standby")) 1923 { 1924 CHECK_ERROR(machine, COMSETTER(FaultToleranceState(FaultToleranceState_Standby))); 1925 } 1926 else 1927 { 1928 errorArgument("Invalid --faulttolerance argument '%s'", ValueUnion.psz); 1929 rc = E_FAIL; 1930 } 1931 break; 1932 } 1933 1934 case MODIFYVM_FAULT_TOLERANCE_ADDRESS: 1935 { 1936 CHECK_ERROR(machine, COMSETTER(FaultToleranceAddress)(Bstr(ValueUnion.psz))); 1937 break; 1938 } 1939 1940 case MODIFYVM_FAULT_TOLERANCE_PORT: 1941 { 1942 CHECK_ERROR(machine, COMSETTER(FaultTolerancePort)(ValueUnion.u32)); 1943 break; 1944 } 1945 1946 case MODIFYVM_FAULT_TOLERANCE_PASSWORD: 1947 { 1948 CHECK_ERROR(machine, COMSETTER(FaultTolerancePassword)(Bstr(ValueUnion.psz))); 1949 break; 1950 } 1951 1952 case MODIFYVM_FAULT_TOLERANCE_SYNC_INTERVAL: 1953 { 1954 CHECK_ERROR(machine, COMSETTER(FaultToleranceSyncInterval)(ValueUnion.u32)); 1955 break; 1956 } 1957 1904 1958 case MODIFYVM_HARDWARE_UUID: 1905 1959 {
Note:
See TracChangeset
for help on using the changeset viewer.