aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_stat_freebsd.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-21 14:32:13 +0200
committerGitHub <noreply@github.com>2022-09-21 14:32:13 +0200
commit7a189a6956ec438728695b69a2efbfd8e6aadd22 (patch)
tree807516cacbaf5608ab6af089360cff18baa72d30 /libpod/container_stat_freebsd.go
parentffa73c58a52b470d9708a8ae38536fa0dc443d8b (diff)
parentbb160be12be137116c2ee2b5e448ec8756f2ed64 (diff)
downloadpodman-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.go13
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)
+}