VirtualBox

Changeset 47544 in vbox


Ignore:
Timestamp:
Aug 5, 2013 1:45:55 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87738
Message:

VBoxManage: when taking snapshots, --pause is default and --live must be explicitely specified

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r47495 r47544  
    16201620    the snapshot and can optionally supply a description. The new snapshot is
    16211621    inserted into the snapshots tree as a child of the current snapshot and
    1622     then becomes the new current snapshot.</para>
     1622    then becomes the new current snapshot. The
     1623    <computeroutput>--description</computeroutput> parameter allows to
     1624    describe the snapshot. If <computeroutput>--live</computeroutput>
     1625    is specified, the VM will not be stopped during the snapshot creation
     1626    (live smapshotting).</para>
    16231627
    16241628    <para>The <computeroutput>delete</computeroutput> operation deletes a
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r47246 r47544  
    499499        RTStrmPrintf(pStrm,
    500500                           "%s snapshot %s        <uuid|vmname>\n"
    501                      "                            take <name> [--description <desc>] [--pause] |\n"
     501                     "                            take <name> [--description <desc>] [--live] |\n"
    502502                     "                            delete <uuid|snapname> |\n"
    503503                     "                            restore <uuid|snapname> |\n"
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp

    r44528 r47544  
    307307            /* parse the optional arguments */
    308308            Bstr desc;
    309             bool fPause = false;
     309            bool fPause = true; /* default is NO live snapshot */
    310310            static const RTGETOPTDEF s_aTakeOptions[] =
    311311            {
     
    313313                { "-description",  'd', RTGETOPT_REQ_STRING },
    314314                { "-desc",         'd', RTGETOPT_REQ_STRING },
    315                 { "--pause",       'p', RTGETOPT_REQ_NOTHING }
     315                { "--pause",       'p', RTGETOPT_REQ_NOTHING },
     316                { "--live",        'l', RTGETOPT_REQ_NOTHING }
    316317            };
    317318            RTGETOPTSTATE GetOptState;
     
    329330                        break;
    330331
     332                    case 'l':
     333                        fPause = false;
     334                        break;
     335
    331336                    case 'd':
    332337                        desc = Value.psz;
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