Changeset 71815 in vbox
- Timestamp:
- Apr 11, 2018 9:29:45 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
doc/manual/en_US/user_VBoxManage.xml (modified) (5 diffs)
-
src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/user_VBoxManage.xml
r71132 r71815 7 7 built into VBoxManage as well as manpages (hacking in progress). 8 8 9 Copyright (C) 2006-201 7Oracle Corporation9 Copyright (C) 2006-2018 Oracle Corporation 10 10 11 11 This file is part of VirtualBox Open Source Edition (OSE), as … … 4700 4700 4701 4701 <screen>VBoxManage guestcontrol <uuid|vmname> copyfrom [common-options] 4702 [-- dryrun] [--follow] [--R|recursive]4702 [--follow] [--R|recursive] 4703 4703 --target-directory <host-dst-dir> 4704 4704 <guest-src0> [<guest-src1> [...]] </screen> … … 4709 4709 <glossdef> 4710 4710 <para>Specifies the VM UUID or VM name. Mandatory.</para> 4711 </glossdef>4712 </glossentry>4713 4714 <glossentry>4715 <glossterm><computeroutput>--dryrun</computeroutput></glossterm>4716 <glossdef>4717 <para>Instructs VBoxManage to perform a dry run instead of an actual file copying4718 operation. Optional. </para>4719 4711 </glossdef> 4720 4712 </glossentry> … … 4762 4754 4763 4755 <screen>VBoxManage guestcontrol <uuid|vmname> copyto [common-options] 4764 [-- dryrun] [--follow] [--R|recursive]4756 [--follow] [--R|recursive] 4765 4757 --target-directory <guest-dst> 4766 4758 <host-src0> [<host-src1> [...]] </screen> … … 4771 4763 <glossdef> 4772 4764 <para>Specifies the VM UUID or VM name. Mandatory.</para> 4773 </glossdef>4774 </glossentry>4775 4776 <glossentry>4777 <glossterm><computeroutput>--dryrun</computeroutput></glossterm>4778 <glossdef>4779 <para>Instructs VBoxManage to perform a dry run instead of an actual file copying4780 operation. Optional. </para>4781 4765 </glossdef> 4782 4766 </glossentry> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r71319 r71815 186 186 187 187 } GCTLCMDCTX, *PGCTLCMDCTX; 188 189 190 typedef struct COPYCONTEXT191 {192 COPYCONTEXT()193 : fDryRun(false),194 fHostToGuest(false)195 {196 }197 198 PGCTLCMDCTX pCmdCtx;199 bool fDryRun;200 bool fHostToGuest;201 202 } COPYCONTEXT, *PCOPYCONTEXT;203 188 204 189 /** … … 340 325 RTStrmPrintf(pStrm, 341 326 " copyfrom [common-options]\n" 342 " [-- dryrun] [--follow] [-R|--recursive]\n"327 " [--follow] [-R|--recursive]\n" 343 328 " <guest-src0> [guest-src1 [...]] <host-dst>\n" 344 329 "\n" 345 330 " copyfrom [common-options]\n" 346 " [-- dryrun] [--follow] [-R|--recursive]\n"331 " [--follow] [-R|--recursive]\n" 347 332 " [--target-directory <host-dst-dir>]\n" 348 333 " <guest-src0> [guest-src1 [...]]\n" … … 351 336 RTStrmPrintf(pStrm, 352 337 " copyto [common-options]\n" 353 " [-- dryrun] [--follow] [-R|--recursive]\n"338 " [--follow] [-R|--recursive]\n" 354 339 " <host-src0> [host-src1 [...]] <guest-dst>\n" 355 340 "\n" 356 341 " copyto [common-options]\n" 357 " [-- dryrun] [--follow] [-R|--recursive]\n"342 " [--follow] [-R|--recursive]\n" 358 343 " [--target-directory <guest-dst>]\n" 359 344 " <host-src0> [host-src1 [...]]\n" … … 1749 1734 enum GETOPTDEF_COPY 1750 1735 { 1751 GETOPTDEF_COPY_DRYRUN = 1000, 1752 GETOPTDEF_COPY_FOLLOW, 1736 GETOPTDEF_COPY_FOLLOW = 1000, 1753 1737 GETOPTDEF_COPY_TARGETDIR 1754 1738 }; … … 1756 1740 { 1757 1741 GCTLCMD_COMMON_OPTION_DEFS() 1758 { "--dryrun", GETOPTDEF_COPY_DRYRUN, RTGETOPT_REQ_NOTHING },1759 1742 { "--follow", GETOPTDEF_COPY_FOLLOW, RTGETOPT_REQ_NOTHING }, 1760 1743 { "--recursive", 'R', RTGETOPT_REQ_NOTHING }, … … 1768 1751 1769 1752 const char *pszDst = NULL; 1770 bool fDryRun = false;1771 1753 bool fFollow = false; 1772 1754 bool fRecursive = false; … … 1782 1764 { 1783 1765 GCTLCMD_COMMON_OPTION_CASES(pCtx, ch, &ValueUnion); 1784 1785 case GETOPTDEF_COPY_DRYRUN:1786 fDryRun = true;1787 break;1788 1766 1789 1767 case GETOPTDEF_COPY_FOLLOW: … … 1843 1821 else 1844 1822 RTPrintf("Copying from guest to host ...\n"); 1845 if (fDryRun)1846 RTPrintf("Dry run - no files copied!\n");1847 1823 } 1848 1824
Note:
See TracChangeset
for help on using the changeset viewer.

