VirtualBox

Changeset 94172 in vbox for trunk


Ignore:
Timestamp:
Mar 11, 2022 2:24:52 PM (3 years ago)
Author:
vboxsync
Message:

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

Location:
trunk
Files:
7 edited

Legend:

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

    r94171 r94172  
    6262        man_VBoxManage-hostonlynet.xml \
    6363        man_VBoxManage-updatecheck.xml \
    64         man_VBoxManage-discardstate.xml
     64        man_VBoxManage-discardstate.xml \
     65        man_VBoxManage-adoptstate.xml
    6566
    6667## List of user manual XML files.
  • trunk/doc/manual/en_US/man_VBoxManage-adoptstate.xml

    r82969 r94172  
    2020<refentry id="vboxmanage-adoptstate" lang="en">
    2121  <refentryinfo>
    22     <pubdate>August 2019</pubdate>
     22    <pubdate>$Date$</pubdate>
    2323    <title>VBoxManage adoptstate</title>
    2424  </refentryinfo>
     
    3232    <refname>VBoxManage-adoptstate</refname>
    3333    <refpurpose>change a virtual machine's state based on a saved state file</refpurpose>
    34     <refclass>Oracle VM VirtualBox</refclass>
     34    <refclass>&product-name;</refclass>
    3535  </refnamediv>
    3636
     
    8585    <remark role="help-scope" condition="GLOBAL" />
    8686    <para>
    87       The following command starts a VM called <literal>vm2</literal>
    88       using a saved state file called <filename>mystate.sav</filename>.
     87      The following command adopts a saved state file called
     88      <filename>mystate.sav</filename> by a VM called <literal>vm2</literal>.
     89      A subsequent start of the VM called <literal>vm2</literal> restores the
     90      state from the saved state file <filename>mystate.sav</filename>.
    8991    </para>
    9092<screen>$ VBoxManage adoptstate vm2 /home/user/mystate.sav</screen>
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r94171 r94172  
    339339  <xi:include href="user_man_VBoxManage-discardstate.xml"   xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    340340
    341   <sect1 id="vboxmanage-adoptstate">
    342 
    343     <title>VBoxManage adoptstate</title>
    344 
    345     <para>
    346       If you have a Saved state file (<filename>.sav</filename>) that is
    347       separate from the VM configuration, you can use this command to
    348       <emphasis>adopt</emphasis> the file. This will change the VM to
    349       saved state and when you start it, &product-name; will attempt to
    350       restore it from the saved state file you indicated. This command
    351       should only be used in special setups.
    352     </para>
    353 
    354   </sect1>
     341  <xi:include href="user_man_VBoxManage-adoptstate.xml"     xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
    355342
    356343  <xi:include href="user_man_VBoxManage-snapshot.xml"       xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r94171 r94172  
    217217    { "unattended",         USAGE_S_NEWCMD,   HELP_CMD_UNATTENDED, handleUnattended,           0 },
    218218    { "discardstate",       USAGE_S_NEWCMD, HELP_CMD_DISCARDSTATE, handleDiscardState,         0 },
    219     { "adoptstate",         USAGE_ADOPTSTATE,       VBMG_CMD_TODO, handleAdoptState,           0 },
     219    { "adoptstate",         USAGE_S_NEWCMD,   HELP_CMD_ADOPTSTATE, handleAdoptState,           0 },
    220220    { "snapshot",           USAGE_S_NEWCMD,     HELP_CMD_SNAPSHOT, handleSnapshot,             0 },
    221221    { "closemedium",        USAGE_CLOSEMEDIUM,      VBMG_CMD_TODO, handleCloseMedium,          0 },
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r94171 r94172  
    115115    USAGE_I_LISTPARTITIONS,
    116116    USAGE_I_CREATERAWVMDK,
    117     USAGE_ADOPTSTATE,
    118117    USAGE_I_MODINSTALL,
    119118    USAGE_I_MODUNINSTALL,
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r94171 r94172  
    591591
    592592#define SEP pcszSep1, pcszSep2
    593 
    594     if (enmCommand == USAGE_ADOPTSTATE || enmCommand == USAGE_S_ALL)
    595         RTStrmPrintf(pStrm,
    596                            "%s adoptstate %s      <uuid|vmname> <state_file>\n"
    597                      "\n", SEP);
    598593
    599594    if (enmCommand == USAGE_CLOSEMEDIUM || enmCommand == USAGE_S_ALL)
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r94171 r94172  
    789789
    790790    if (a->argc != 2)
    791         return errorSyntax(USAGE_ADOPTSTATE, Misc::tr("Incorrect number of parameters"));
     791        return errorSyntax(Misc::tr("Incorrect number of parameters"));
    792792
    793793    ComPtr<IMachine> machine;
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