VirtualBox

Changeset 94217 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 14, 2022 8:56:53 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150473
Message:

doc/manual,FE/VBoxManage: Convert storageattach command to refentry documentation, ​bugref:9186

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94213 r94217  
    220220    { "snapshot",           USAGE_S_NEWCMD,     HELP_CMD_SNAPSHOT, handleSnapshot,             0 },
    221221    { "closemedium",        USAGE_S_NEWCMD,  HELP_CMD_CLOSEMEDIUM, handleCloseMedium,          0 },
    222     { "storageattach",      USAGE_STORAGEATTACH,    VBMG_CMD_TODO, handleStorageAttach,        0 },
     222    { "storageattach",      USAGE_S_NEWCMD,HELP_CMD_STORAGEATTACH, handleStorageAttach,        0 },
    223223    { "storagectl",         USAGE_S_NEWCMD,   HELP_CMD_STORAGECTL, handleStorageController,    0 },
    224224    { "showmediuminfo",     USAGE_S_NEWCMD,HELP_CMD_SHOWMEDIUMINFO, handleShowMediumInfo,       0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94213 r94217  
    112112    USAGE_I_CONVERTHD,
    113113    USAGE_I_DUMPHDINFO,
    114     USAGE_STORAGEATTACH,
    115114    USAGE_I_DEBUGLOG,
    116115    USAGE_I_SETHDPARENTUUID,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94213 r94217  
    594594#define SEP pcszSep1, pcszSep2
    595595
    596     if (enmCommand == USAGE_STORAGEATTACH || enmCommand == USAGE_S_ALL)
    597         RTStrmPrintf(pStrm,
    598                            "%s storageattach %s   <uuid|vmname>\n"
    599                      "                            --storagectl <name>\n"
    600                      "                            [--port <number>]\n"
    601                      "                            [--device <number>]\n"
    602                      "                            [--type dvddrive|hdd|fdd]\n"
    603                      "                            [--medium none|emptydrive|additions|\n"
    604                      "                                      <uuid|filename>|host:<drive>|iscsi]\n"
    605                      "                            [--mtype normal|writethrough|immutable|shareable|\n"
    606                      "                                     readonly|multiattach]\n"
    607                      "                            [--comment <text>]\n"
    608                      "                            [--setuuid <uuid>]\n"
    609                      "                            [--setparentuuid <uuid>]\n"
    610                      "                            [--passthrough on|off]\n"
    611                      "                            [--tempeject on|off]\n"
    612                      "                            [--nonrotational on|off]\n"
    613                      "                            [--discard on|off]\n"
    614                      "                            [--hotpluggable on|off]\n"
    615                      "                            [--bandwidthgroup <name>]\n"
    616                      "                            [--forceunmount]\n"
    617                      "                            [--server <name>|<ip>]\n"
    618                      "                            [--target <target>]\n"
    619                      "                            [--tport <port>]\n"
    620                      "                            [--lun <lun>]\n"
    621                      "                            [--encodedlun <lun>]\n"
    622                      "                            [--username <username>]\n"
    623                      "                            [--password <password>]\n"
    624                      "                            [--passwordfile <file>]\n"
    625                      "                            [--initiator <initiator>]\n"
    626                      "                            [--intnet]\n"
    627                      "\n", SEP);
    628 
    629596    if (enmCommand == USAGE_MODIFYMEDIUM || enmCommand == USAGE_S_ALL)
    630597        RTStrmPrintf(pStrm,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r94179 r94217  
    316316            default:
    317317            {
    318                 errorGetOpt(USAGE_STORAGEATTACH, c, &ValueUnion);
     318                errorGetOpt(c, &ValueUnion);
    319319                rc = E_FAIL;
    320320                break;
     
    327327
    328328    if (!pszCtl)
    329         return errorSyntax(USAGE_STORAGEATTACH, Storage::tr("Storage controller name not specified"));
     329        return errorSyntax(Storage::tr("Storage controller name not specified"));
    330330
    331331    /* get the virtualbox system properties */
     
    370370                port = 0;
    371371            else
    372                 return errorSyntax(USAGE_STORAGEATTACH, Storage::tr("Port not specified"));
     372                return errorSyntax(Storage::tr("Port not specified"));
    373373        }
    374374        if (device == ~0U)
     
    377377                device = 0;
    378378            else
    379                 return errorSyntax(USAGE_STORAGEATTACH, Storage::tr("Device not specified"));
     379                return errorSyntax(Storage::tr("Device not specified"));
    380380        }
    381381
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette