Changeset 42395 in vbox for trunk/src/VBox
- Timestamp:
- Jul 25, 2012 2:36:03 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r42261 r42395 506 506 " [--username <username>]\n" 507 507 " [--password <password>]\n" 508 " [--initiator <initiator>]\n" 508 509 " [--intnet]\n" 509 510 "\n"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r42017 r42395 68 68 { "--username", 'U', RTGETOPT_REQ_STRING }, 69 69 { "--password", 'W', RTGETOPT_REQ_STRING }, 70 { "--initiator", 'N', RTGETOPT_REQ_STRING }, 70 71 { "--intnet", 'I', RTGETOPT_REQ_NOTHING }, 71 72 }; … … 100 101 Bstr bstrUsername; 101 102 Bstr bstrPassword; 103 Bstr bstrInitiator; 102 104 bool fIntNet = false; 103 105 … … 268 270 case 'W': // --password 269 271 bstrPassword = ValueUnion.psz; 272 break; 273 274 case 'N': // --initiator 275 bstrInitiator = ValueUnion.psz; 270 276 break; 271 277 … … 597 603 bstrPassword.detachTo(values.appendedRaw()); 598 604 } 599 600 /// @todo add --initiator option - until that happens rely on the 601 // defaults of the iSCSI initiator code. Setting it to a constant 602 // value does more harm than good, as the initiator name is supposed 603 // to identify a particular initiator uniquely. 604 // Bstr("InitiatorName").detachTo(names.appendedRaw()); 605 // Bstr("iqn.2008-04.com.sun.virtualbox.initiator").detachTo(values.appendedRaw()); 605 if (!bstrPassword.isEmpty()) 606 { 607 Bstr("InitiatorName").detachTo(names.appendedRaw()); 608 bstrInitiator.detachTo(values.appendedRaw()); 609 } 606 610 607 611 /// @todo add --targetName and --targetPassword options
Note:
See TracChangeset
for help on using the changeset viewer.