summaryrefslogtreecommitdiff
path: root/libpod/container_stat_freebsd.go
diff options
context:
space:
mode:
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)
+}