VirtualBox

Changeset 94203 in vbox for trunk


Ignore:
Timestamp:
Mar 12, 2022 7:40:19 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150459
Message:

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

Location:
trunk
Files:
7 edited

Legend:

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

    r94202 r94203  
    7272        man_VBoxManage-mediumproperty.xml \
    7373        man_VBoxManage-encryptmedium.xml \
    74         man_VBoxManage-checkmediumpwd.xml
     74        man_VBoxManage-checkmediumpwd.xml \
     75        man_VBoxManage-convertfromraw.xml
    7576
    7677## List of user manual XML files.
  • trunk/doc/manual/en_US/man_VBoxManage-convertfromraw.xml

    r82969 r94203  
    2020<refentry id="vboxmanage-convertfromraw" lang="en">
    2121  <refentryinfo>
    22     <pubdate>September 2019</pubdate>
     22    <pubdate>$Date$</pubdate>
    2323    <title>VBoxManage convertfromraw</title>
    2424  </refentryinfo>
     
    3232    <refname>VBoxManage-convertfromraw</refname>
    3333    <refpurpose>convert a raw disk image to a virtual disk image</refpurpose>
    34     <refclass>Oracle VM VirtualBox</refclass>
     34    <refclass>&product-name;</refclass>
    3535  </refnamediv>
    3636
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r94202 r94203  
    10971097  <xi:include href="user_man_VBoxManage-checkmediumpwd.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    10981098
    1099   <sect1 id="vboxmanage-convertfromraw">
    1100 
    1101     <title>VBoxManage convertfromraw</title>
    1102 
    1103     <para>
    1104       This command converts a raw disk image to an &product-name; Disk
    1105       Image (VDI) file. The syntax is as follows:
    1106     </para>
    1107 
    1108 <screen>VBoxManage convertfromraw   &lt;filename&gt; &lt;outputfile&gt;
    1109                             [--format VDI|VMDK|VHD]
    1110                             [--variant Standard,Fixed,Split2G,Stream,ESX]
    1111                             [--uuid &lt;uuid&gt;]
    1112 VBoxManage convertfromraw   stdin &lt;outputfile&gt; &lt;bytes&gt;
    1113                             [--format VDI|VMDK|VHD]
    1114                             [--variant Standard,Fixed,Split2G,Stream,ESX]
    1115                             [--uuid &lt;uuid&gt;]</screen>
    1116 
    1117     <para>
    1118       The parameters are as follows:
    1119     </para>
    1120 
    1121     <variablelist>
    1122 
    1123       <varlistentry>
    1124         <term>
    1125           <computeroutput>--bytes</computeroutput>
    1126         </term>
    1127 
    1128         <listitem>
    1129           <para>
    1130             The size of the image file, in bytes, provided through
    1131             stdin.
    1132           </para>
    1133         </listitem>
    1134       </varlistentry>
    1135 
    1136       <varlistentry>
    1137         <term>
    1138           <computeroutput>--format</computeroutput>
    1139         </term>
    1140 
    1141         <listitem>
    1142           <para>
    1143             Select the disk image format to create. The default format
    1144             is VDI. Other options are VMDK and VHD.
    1145           </para>
    1146         </listitem>
    1147       </varlistentry>
    1148 
    1149       <varlistentry>
    1150         <term>
    1151           <computeroutput>--variant</computeroutput>
    1152         </term>
    1153 
    1154         <listitem>
    1155           <para>
    1156             Choose a file format variant for the output file. This is a
    1157             comma-separated list of variant flags. Not all combinations
    1158             are supported, and specifying inconsistent flags will result
    1159             in an error message.
    1160           </para>
    1161         </listitem>
    1162       </varlistentry>
    1163 
    1164       <varlistentry>
    1165         <term>
    1166           <computeroutput>--uuid</computeroutput>
    1167         </term>
    1168 
    1169         <listitem>
    1170           <para>
    1171             Specify the UUID of the output file.
    1172           </para>
    1173         </listitem>
    1174       </varlistentry>
    1175 
    1176     </variablelist>
    1177 
    1178     <para>
    1179       The <command>stdin</command> form of the command forces
    1180       <command>VBoxManage</command> to read the content of the disk
    1181       image from standard input. This useful when using the command in a
    1182       pipe.
    1183     </para>
    1184 
    1185     <note>
    1186       <para>
    1187         For compatibility with earlier versions of &product-name;, the
    1188         <command>convertdd</command> command is also supported and
    1189         mapped internally to the <command>convertfromraw</command>
    1190         command.
    1191       </para>
    1192     </note>
    1193 
    1194   </sect1>
     1099  <xi:include href="user_man_VBoxManage-convertfromraw.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    11951100
    11961101  <xi:include href="user_man_VBoxManage-mediumio.xml"       xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94202 r94203  
    254254    { "bandwidthctl",       USAGE_S_NEWCMD, HELP_CMD_BANDWIDTHCTL, handleBandwidthControl,     0 },
    255255    { "debugvm",            USAGE_S_NEWCMD,      HELP_CMD_DEBUGVM, handleDebugVM,              0 },
    256     { "convertfromraw",     USAGE_CONVERTFROMRAW,   VBMG_CMD_TODO, handleConvertFromRaw,       VBMG_CMD_F_NO_COM },
    257     { "convertdd",          USAGE_CONVERTFROMRAW,   VBMG_CMD_TODO, handleConvertFromRaw,       VBMG_CMD_F_NO_COM },
     256    { "convertfromraw",     USAGE_S_NEWCMD,HELP_CMD_CONVERTFROMRAW, handleConvertFromRaw,       VBMG_CMD_F_NO_COM },
     257    { "convertdd",          USAGE_S_NEWCMD,HELP_CMD_CONVERTFROMRAW, handleConvertFromRaw,       VBMG_CMD_F_NO_COM },
    258258    { "usbdevsource",       USAGE_USBDEVSOURCE,     VBMG_CMD_TODO, handleUSBDevSource,         0 },
    259259    { "cloudprofile",       USAGE_S_NEWCMD,      HELP_CMD_CLOUDPROFILE, handleCloudProfile,         0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94202 r94203  
    108108    USAGE_I_LOADMAP,
    109109    USAGE_I_SETHDUUID,
    110     USAGE_CONVERTFROMRAW,
    111110    USAGE_I_LISTPARTITIONS,
    112111    USAGE_I_CREATERAWVMDK,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r94202 r94203  
    12331233            case 'u':   // --uuid
    12341234                if (RT_FAILURE(RTUuidFromStr(&uuid, ValueUnion.psz)))
    1235                     return errorSyntax(USAGE_CONVERTFROMRAW, Disk::tr("Invalid UUID '%s'"), ValueUnion.psz);
     1235                    return errorSyntax(Disk::tr("Invalid UUID '%s'"), ValueUnion.psz);
    12361236                pUuid = &uuid;
    12371237                break;
     
    12611261                    filesize = ValueUnion.psz;
    12621262                else
    1263                     return errorSyntax(USAGE_CONVERTFROMRAW, Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
     1263                    return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);
    12641264                break;
    12651265
    12661266            default:
    1267                 return errorGetOpt(USAGE_CONVERTFROMRAW, c, &ValueUnion);
     1267                return errorGetOpt(c, &ValueUnion);
    12681268        }
    12691269    }
    12701270
    12711271    if (!srcfilename || !dstfilename || (fReadFromStdIn && !filesize))
    1272         return errorSyntax(USAGE_CONVERTFROMRAW, Disk::tr("Incorrect number of parameters"));
     1272        return errorSyntax(Disk::tr("Incorrect number of parameters"));
    12731273    RTStrmPrintf(g_pStdErr, Disk::tr("Converting from raw image file=\"%s\" to file=\"%s\"...\n"),
    12741274                 srcfilename, dstfilename);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94202 r94203  
    639639                     "\n", SEP);
    640640
    641     if (enmCommand == USAGE_CONVERTFROMRAW || enmCommand == USAGE_S_ALL)
    642         RTStrmPrintf(pStrm,
    643                            "%s convertfromraw %s  <filename> <outputfile>\n"
    644                      "                            [--format VDI|VMDK|VHD]\n"
    645                      "                            [--variant Standard,Fixed,Split2G,Stream,ESX]\n"
    646                      "                            [--uuid <uuid>]\n"
    647                            "%s convertfromraw %s  stdin <outputfile> <bytes>\n"
    648                      "                            [--format VDI|VMDK|VHD]\n"
    649                      "                            [--variant Standard,Fixed,Split2G,Stream,ESX]\n"
    650                      "                            [--uuid <uuid>]\n"
    651                      "\n", SEP, SEP);
    652 
    653641    if (enmCommand == USAGE_GETEXTRADATA || enmCommand == USAGE_S_ALL)
    654642        RTStrmPrintf(pStrm,
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