diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-04 13:34:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-04 13:34:41 +0200 |
commit | 8942a60bb012d2aa83f7d4ab1c05ec8e46df48a6 (patch) | |
tree | c80e70f956eb155abfd7785c78b48f52950d37f5 /libpod | |
parent | e136bcc7c97ed9a7576417259cf93f7209f45dd2 (diff) | |
parent | da57065abdcac276fd922b3e736517c9384ec20e (diff) | |
download | podman-8942a60bb012d2aa83f7d4ab1c05ec8e46df48a6.tar.gz podman-8942a60bb012d2aa83f7d4ab1c05ec8e46df48a6.tar.bz2 podman-8942a60bb012d2aa83f7d4ab1c05ec8e46df48a6.zip |
Merge pull request #15582 from dfr/freebsd-bind
Add support for FreeBSD volume mounts in specgen
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/define/mount.go | 2 | ||||
-rw-r--r-- | libpod/define/mount_freebsd.go | 8 | ||||
-rw-r--r-- | libpod/define/mount_linux.go | 8 | ||||
-rw-r--r-- | libpod/define/mount_unsupported.go | 8 |
4 files changed, 24 insertions, 2 deletions
diff --git a/libpod/define/mount.go b/libpod/define/mount.go index 1b0d019c8..db444fd83 100644 --- a/libpod/define/mount.go +++ b/libpod/define/mount.go @@ -1,8 +1,6 @@ package define const ( - // TypeBind is the type for mounting host dir - TypeBind = "bind" // TypeVolume is the type for named volumes TypeVolume = "volume" // TypeTmpfs is the type for mounting tmpfs diff --git a/libpod/define/mount_freebsd.go b/libpod/define/mount_freebsd.go new file mode 100644 index 000000000..e080c9ec6 --- /dev/null +++ b/libpod/define/mount_freebsd.go @@ -0,0 +1,8 @@ +//go:build freebsd + +package define + +const ( + // TypeBind is the type for mounting host dir + TypeBind = "nullfs" +) diff --git a/libpod/define/mount_linux.go b/libpod/define/mount_linux.go new file mode 100644 index 000000000..5ef848905 --- /dev/null +++ b/libpod/define/mount_linux.go @@ -0,0 +1,8 @@ +//go:build linux + +package define + +const ( + // TypeBind is the type for mounting host dir + TypeBind = "bind" +) diff --git a/libpod/define/mount_unsupported.go b/libpod/define/mount_unsupported.go new file mode 100644 index 000000000..cb8642fe2 --- /dev/null +++ b/libpod/define/mount_unsupported.go @@ -0,0 +1,8 @@ +//go:build !linux && !freebsd + +package define + +const ( + // TypeBind is the type for mounting host dir + TypeBind = "bind" +) |