Changeset 15044 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Dec 5, 2008 1:48:24 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40425
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r14814 r15044 1322 1322 if (!port.isNull()) 1323 1323 server = BstrFmt ("%ls:%ls", server.raw(), port.raw()); 1324 CHECK_ERROR_BREAK(hardDisk, SetProperty(Bstr("TargetAddress"), server)); 1325 CHECK_ERROR_BREAK(hardDisk, SetProperty(Bstr("TargetName"), target)); 1324 1325 com::SafeArray <BSTR> names; 1326 com::SafeArray <BSTR> values; 1327 1328 Bstr ("TargetAddress").detachTo (names.appendedRaw()); 1329 server.detachTo (values.appendedRaw()); 1330 Bstr ("TargetName").detachTo (names.appendedRaw()); 1331 target.detachTo (values.appendedRaw()); 1326 1332 1327 1333 if (!lun.isNull()) 1328 CHECK_ERROR_BREAK(hardDisk, SetProperty(Bstr("LUN"), lun)); 1334 { 1335 Bstr ("LUN").detachTo (names.appendedRaw()); 1336 lun.detachTo (values.appendedRaw()); 1337 } 1329 1338 if (!username.isNull()) 1330 CHECK_ERROR_BREAK(hardDisk, SetProperty(Bstr("InitiatorUsername"), username)); 1339 { 1340 Bstr ("InitiatorUsername").detachTo (names.appendedRaw()); 1341 username.detachTo (values.appendedRaw()); 1342 } 1331 1343 if (!password.isNull()) 1332 CHECK_ERROR_BREAK(hardDisk, SetProperty(Bstr("InitiatorSecret"), password)); 1344 { 1345 Bstr ("InitiatorSecret").detachTo (names.appendedRaw()); 1346 password.detachTo (values.appendedRaw()); 1347 } 1333 1348 1334 1349 /// @todo add -initiator option 1335 CHECK_ERROR_BREAK(hardDisk, 1336 SetProperty(Bstr("InitiatorName"), 1337 Bstr("iqn.2008-04.com.sun.virtualbox.initiator"))); 1350 Bstr ("InitiatorName").detachTo (names.appendedRaw()); 1351 Bstr ("iqn.2008-04.com.sun.virtualbox.initiator").detachTo (values.appendedRaw()); 1338 1352 1339 1353 /// @todo add -targetName and -targetPassword options 1354 1355 CHECK_ERROR_BREAK (hardDisk, 1356 SetProperties (ComSafeArrayAsInParam (names), 1357 ComSafeArrayAsInParam (values))); 1340 1358 1341 1359 Guid guid;
Note:
See TracChangeset
for help on using the changeset viewer.