From ae03e1a97229b192e50439091db92a1b11a8df93 Mon Sep 17 00:00:00 2001 From: Alexander Wilson Date: Fri, 22 Jul 2022 04:08:11 -0700 Subject: 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 --- man/org.freedesktop.machine1.xml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'man/org.freedesktop.machine1.xml') 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 { + + @@ -236,6 +246,10 @@ node /org/freedesktop/machine1 { + + + + @@ -394,8 +408,10 @@ node /org/freedesktop/machine1 { CopyFromMachine() 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. CopyToMachine() does the opposite and copies files from a source - directory on the host into a destination directory in the container. + host as arguments. + CopyToMachine() does the opposite and copies files from a source + directory on the host into a destination directory in the container. + CopyFromMachineWithFlags() and CopyToMachineWithFlags do the same but take an additional flags argument. RemoveImage() removes the image with the specified name. @@ -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 { + + + + @@ -540,6 +566,10 @@ node /org/freedesktop/machine1/machine/rawhide { + + + + -- cgit v1.2.3