diff options
author | Alexander Wilson <rdtscp@fb.com> | 2022-07-22 13:08:11 +0200 |
---|---|---|
committer | Alexander Wilson <rdtscp@fb.com> | 2022-07-27 17:41:03 +0200 |
commit | ae03e1a97229b192e50439091db92a1b11a8df93 (patch) | |
tree | 5c45a048534c10b6c64a97dbe534d0f13f30bdd8 /man | |
parent | copy: Respect COPY_REPLACE flag for copy_tree (diff) | |
download | systemd-ae03e1a97229b192e50439091db92a1b11a8df93.tar.xz systemd-ae03e1a97229b192e50439091db92a1b11a8df93.zip |
machinectl: Add plumbing for a `--force` flag for file copy
machine: Add APIs CopyTo[Machine]WithFlags + CopyFrom[Machine]WithFlags
- Same API to those without `WithFlags` (except this can take flags)
- Initially, only a flag to allow replacing a file if it already exists
Diffstat (limited to 'man')
-rw-r--r-- | man/machinectl.xml | 4 | ||||
-rw-r--r-- | man/org.freedesktop.machine1.xml | 34 |
2 files changed, 34 insertions, 4 deletions
diff --git a/man/machinectl.xml b/man/machinectl.xml index 7ecb8885a2..5bc82e5d1a 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -305,7 +305,7 @@ </varlistentry> <varlistentry> - <term><command>copy-to</command> <replaceable>NAME</replaceable> <replaceable>PATH</replaceable> [<replaceable>PATH</replaceable>]</term> + <term><command>copy-to</command> <replaceable>NAME</replaceable> <replaceable>PATH</replaceable> [<replaceable>PATH</replaceable>] <option>--force</option></term> <listitem><para>Copies files or directories from the host system into a running container. Takes a container name, @@ -319,7 +319,7 @@ </varlistentry> <varlistentry> - <term><command>copy-from</command> <replaceable>NAME</replaceable> <replaceable>PATH</replaceable> [<replaceable>PATH</replaceable>]</term> + <term><command>copy-from</command> <replaceable>NAME</replaceable> <replaceable>PATH</replaceable> [<replaceable>PATH</replaceable>] <option>--force</option></term> <listitem><para>Copies files or directories from a container into the host system. Takes a container name, followed by the diff --git a/man/org.freedesktop.machine1.xml b/man/org.freedesktop.machine1.xml index 946041acfc..c366c1b19a 100644 --- a/man/org.freedesktop.machine1.xml +++ b/man/org.freedesktop.machine1.xml @@ -116,6 +116,14 @@ node /org/freedesktop/machine1 { CopyToMachine(in s name, in s source, in s destination); + CopyFromMachineWithFlags(in s name, + in s source, + in s destination, + in t flags); + CopyToMachineWithFlags(in s name, + in s source, + in s destination, + in t flags); OpenMachineRootDirectory(in s name, out h fd); GetMachineUIDShift(in s name, @@ -176,6 +184,8 @@ node /org/freedesktop/machine1 { <!--method UnregisterMachine is not documented!--> + <!--method CopyToMachineWithFlags is not documented!--> + <!--method OpenMachineRootDirectory is not documented!--> <!--method GetMachineUIDShift is not documented!--> @@ -236,6 +246,10 @@ node /org/freedesktop/machine1 { <variablelist class="dbus-method" generated="True" extra-ref="CopyToMachine()"/> + <variablelist class="dbus-method" generated="True" extra-ref="CopyFromMachineWithFlags()"/> + + <variablelist class="dbus-method" generated="True" extra-ref="CopyToMachineWithFlags()"/> + <variablelist class="dbus-method" generated="True" extra-ref="OpenMachineRootDirectory()"/> <variablelist class="dbus-method" generated="True" extra-ref="GetMachineUIDShift()"/> @@ -394,8 +408,10 @@ node /org/freedesktop/machine1 { <para><function>CopyFromMachine()</function> copies files or directories from a container into the host. It takes a container name, a source directory in the container and a destination directory on the - host as arguments. <function>CopyToMachine()</function> does the opposite and copies files from a source - directory on the host into a destination directory in the container.</para> + host as arguments. + <function>CopyToMachine()</function> does the opposite and copies files from a source + directory on the host into a destination directory in the container. + <function>CopyFromMachineWithFlags()</function> and <function>CopyToMachineWithFlags</function> do the same but take an additional flags argument.</para> <para><function>RemoveImage()</function> removes the image with the specified name.</para> @@ -465,6 +481,12 @@ node /org/freedesktop/machine1/machine/rawhide { in s destination); CopyTo(in s source, in s destination); + CopyFromWithFlags(in s source, + in s destination, + in t flags); + CopyToWithFlags(in s source, + in s destination, + in t flags); OpenRootDirectory(out h fd); properties: @org.freedesktop.DBus.Property.EmitsChangedSignal("const") @@ -510,6 +532,10 @@ node /org/freedesktop/machine1/machine/rawhide { <!--method CopyTo is not documented!--> + <!--method CopyFromWithFlags is not documented!--> + + <!--method CopyToWithFlags is not documented!--> + <!--method OpenRootDirectory is not documented!--> <!--Autogenerated cross-references for systemd.directives, do not edit--> @@ -540,6 +566,10 @@ node /org/freedesktop/machine1/machine/rawhide { <variablelist class="dbus-method" generated="True" extra-ref="CopyTo()"/> + <variablelist class="dbus-method" generated="True" extra-ref="CopyFromWithFlags()"/> + + <variablelist class="dbus-method" generated="True" extra-ref="CopyToWithFlags()"/> + <variablelist class="dbus-method" generated="True" extra-ref="OpenRootDirectory()"/> <variablelist class="dbus-property" generated="True" extra-ref="Name"/> |