diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-21 14:32:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 14:32:13 +0200 |
commit | 7a189a6956ec438728695b69a2efbfd8e6aadd22 (patch) | |
tree | 807516cacbaf5608ab6af089360cff18baa72d30 /libpod/container_stat_freebsd.go | |
parent | ffa73c58a52b470d9708a8ae38536fa0dc443d8b (diff) | |
parent | bb160be12be137116c2ee2b5e448ec8756f2ed64 (diff) | |
download | podman-7a189a6956ec438728695b69a2efbfd8e6aadd22.tar.gz podman-7a189a6956ec438728695b69a2efbfd8e6aadd22.tar.bz2 podman-7a189a6956ec438728695b69a2efbfd8e6aadd22.zip |
Merge pull request #15856 from dfr/freebsd-copy
Add support for 'podman cp' on FreeBSD
Diffstat (limited to 'libpod/container_stat_freebsd.go')
-rw-r--r-- | libpod/container_stat_freebsd.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libpod/container_stat_freebsd.go b/libpod/container_stat_freebsd.go new file mode 100644 index 000000000..d1e0db348 --- /dev/null +++ b/libpod/container_stat_freebsd.go @@ -0,0 +1,13 @@ +package libpod + +import ( + "github.com/containers/buildah/copier" +) + +// On FreeBSD, jails use the global mount namespace, filtered to only +// the mounts the jail should see. This means that we can use +// statOnHost whether the container is running or not. +// container is running +func (c *Container) statInContainer(mountPoint string, containerPath string) (*copier.StatForItem, string, string, error) { + return c.statOnHost(mountPoint, containerPath) +} |