VirtualBox

Changeset 94200 in vbox for trunk


Ignore:
Timestamp:
Mar 12, 2022 7:24:38 PM (3 years ago)
Author:
vboxsync
Message:

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

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Config.kmk

    r94199 r94200  
    6969        man_VBoxManage-showmediuminfo.xml \
    7070        man_VBoxManage-createmedium.xml \
    71         man_VBoxManage-clonemedium.xml
     71        man_VBoxManage-clonemedium.xml \
     72        man_VBoxManage-mediumproperty.xml
    7273
    7374## List of user manual XML files.
  • trunk/doc/manual/en_US/man_VBoxManage-mediumproperty.xml

    r87075 r94200  
    2020<refentry id="vboxmanage-mediumproperty" lang="en">
    2121  <refentryinfo>
    22     <pubdate>September 2019</pubdate>
     22    <pubdate>$Date$</pubdate>
    2323    <title>VBoxManage mediumproperty</title>
    2424  </refentryinfo>
     
    3232    <refname>VBoxManage-mediumproperty</refname>
    3333    <refpurpose>manage medium properties</refpurpose>
    34     <refclass>Oracle VM VirtualBox</refclass>
     34    <refclass>&product-name;</refclass>
    3535  </refnamediv>
    3636
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r94199 r94200  
    10911091  <xi:include href="user_man_VBoxManage-clonemedium.xml"   xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    10921092
    1093   <sect1 id="vboxmanage-mediumproperty">
    1094 
    1095     <title>VBoxManage mediumproperty</title>
    1096 
    1097     <para>
    1098       This command sets, gets, or deletes a medium property. The syntax
    1099       is as follows:
    1100     </para>
    1101 
    1102 <screen>VBoxManage mediumproperty [disk|dvd|floppy] set &lt;uuid|filename&gt;
    1103                                                 &lt;property&gt; &lt;value&gt;</screen>
    1104 
    1105     <itemizedlist>
    1106 
    1107       <listitem>
    1108         <para>
    1109           Use <computeroutput>&lt;disk|dvd|floppy&gt;</computeroutput>
    1110           to optionally specify the type of medium: disk (hard drive),
    1111           dvd, or floppy.
    1112         </para>
    1113       </listitem>
    1114 
    1115       <listitem>
    1116         <para>
    1117           Use <computeroutput>&lt;uuid|filename&gt;</computeroutput> to
    1118           supply either the UUID or absolute path of the medium or
    1119           image.
    1120         </para>
    1121       </listitem>
    1122 
    1123       <listitem>
    1124         <para>
    1125           Use <computeroutput>&lt;property&gt;</computeroutput> to
    1126           supply the name of the property.
    1127         </para>
    1128       </listitem>
    1129 
    1130       <listitem>
    1131         <para>
    1132           Use <computeroutput>&lt;value&gt;</computeroutput> to supply
    1133           the property value.
    1134         </para>
    1135       </listitem>
    1136 
    1137     </itemizedlist>
    1138 
    1139 <screen>VBoxManage mediumproperty [disk|dvd|floppy] get &lt;uuid|filename&gt;
    1140                                                 &lt;property&gt;</screen>
    1141 
    1142     <itemizedlist>
    1143 
    1144       <listitem>
    1145         <para>
    1146           Use <computeroutput>&lt;disk|dvd|floppy&gt;</computeroutput>
    1147           to optionally specify the type of medium: disk (hard drive),
    1148           dvd, or floppy.
    1149         </para>
    1150       </listitem>
    1151 
    1152       <listitem>
    1153         <para>
    1154           Use <computeroutput>&lt;uuid|filename&gt;</computeroutput> to
    1155           supply either the UUID or absolute path of the medium or
    1156           image.
    1157         </para>
    1158       </listitem>
    1159 
    1160       <listitem>
    1161         <para>
    1162           Use <computeroutput>&lt;property&gt;</computeroutput> to
    1163           supply the name of the property.
    1164         </para>
    1165       </listitem>
    1166 
    1167     </itemizedlist>
    1168 
    1169 <screen>VBoxManage mediumproperty [disk|dvd|floppy] delete &lt;uuid|filename&gt;
    1170                                                    &lt;property&gt;</screen>
    1171 
    1172     <itemizedlist>
    1173 
    1174       <listitem>
    1175         <para>
    1176           Use <computeroutput>&lt;disk|dvd|floppy&gt;</computeroutput>
    1177           to optionally specify the type of medium: disk (hard drive),
    1178           dvd, or floppy.
    1179         </para>
    1180       </listitem>
    1181 
    1182       <listitem>
    1183         <para>
    1184           Use <computeroutput>&lt;uuid|filename&gt;</computeroutput> to
    1185           supply either the UUID or absolute path of the medium or
    1186           image.
    1187         </para>
    1188       </listitem>
    1189 
    1190       <listitem>
    1191         <para>
    1192           Use <computeroutput>&lt;property&gt;</computeroutput> to
    1193           supply the name of the property.
    1194         </para>
    1195       </listitem>
    1196 
    1197     </itemizedlist>
    1198 
    1199   </sect1>
     1093  <xi:include href="user_man_VBoxManage-mediumproperty.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    12001094
    12011095  <sect1 id="vboxmanage-encryptmedium">
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94199 r94200  
    198198    { "clonevm",            USAGE_S_NEWCMD,      HELP_CMD_CLONEVM, handleCloneVM,              0 },
    199199    { "movevm",             USAGE_S_NEWCMD,       HELP_CMD_MOVEVM, handleMoveVM,               0 },
    200     { "mediumproperty",     USAGE_MEDIUMPROPERTY,   VBMG_CMD_TODO, handleMediumProperty,       0 },
    201     { "hdproperty",         USAGE_MEDIUMPROPERTY,   VBMG_CMD_TODO, handleMediumProperty,       0 }, /* backward compatibility */
     200    { "mediumproperty",     USAGE_S_NEWCMD,HELP_CMD_MEDIUMPROPERTY, handleMediumProperty,       0 },
     201    { "hdproperty",         USAGE_S_NEWCMD,HELP_CMD_MEDIUMPROPERTY, handleMediumProperty,       0 }, /* backward compatibility */
    202202    { "createmedium",       USAGE_S_NEWCMD, HELP_CMD_CREATEMEDIUM, handleCreateMedium,         0 },
    203203    { "createhd",           USAGE_S_NEWCMD, HELP_CMD_CREATEMEDIUM, handleCreateMedium,         0 }, /* backward compatibility */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94199 r94200  
    132132    USAGE_I_REPAIRHD,
    133133    USAGE_NATNETWORK,
    134     USAGE_MEDIUMPROPERTY,
    135134    USAGE_ENCRYPTMEDIUM,
    136135    USAGE_MEDIUMENCCHKPWD,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r94199 r94200  
    18971897
    18981898    if (a->argc == 0)
    1899         return errorSyntax(USAGE_MEDIUMPROPERTY, Disk::tr("Missing action"));
     1899        return errorSyntax(Disk::tr("Missing action"));
    19001900
    19011901    pszAction = a->argv[0];
     
    19031903        && RTStrICmp(pszAction, "get")
    19041904        && RTStrICmp(pszAction, "delete"))
    1905         return errorSyntax(USAGE_MEDIUMPROPERTY, Disk::tr("Invalid action given: %s"), pszAction);
     1905        return errorSyntax(Disk::tr("Invalid action given: %s"), pszAction);
    19061906
    19071907    if (   (   !RTStrICmp(pszAction, "set")
     
    19091909        || (   RTStrICmp(pszAction, "set")
    19101910            && a->argc != 3))
    1911         return errorSyntax(USAGE_MEDIUMPROPERTY, Disk::tr("Invalid number of arguments given for action: %s"), pszAction);
     1911        return errorSyntax(Disk::tr("Invalid number of arguments given for action: %s"), pszAction);
    19121912
    19131913    pszFilenameOrUuid = a->argv[1];
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94199 r94200  
    639639                     "\n", SEP);
    640640
    641     if (enmCommand == USAGE_MEDIUMPROPERTY || enmCommand == USAGE_S_ALL)
    642         RTStrmPrintf(pStrm,
    643                            "%s mediumproperty %s  [disk|dvd|floppy] set <uuid|filename>\n"
    644                      "                            <property> <value>\n"
    645                      "\n"
    646                      "                            [disk|dvd|floppy] get <uuid|filename>\n"
    647                      "                            <property>\n"
    648                      "\n"
    649                      "                            [disk|dvd|floppy] delete <uuid|filename>\n"
    650                      "                            <property>\n"
    651                      "\n", SEP);
    652 
    653641    if (enmCommand == USAGE_ENCRYPTMEDIUM || enmCommand == USAGE_S_ALL)
    654642        RTStrmPrintf(pStrm,
Note: See TracChangeset for help on using the changeset viewer.

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