mirror of
https://github.com/containers/podman
synced 2024-10-19 08:44:11 +00:00
libpod/define: Make TypeBind a platform-specific constant
This allows us to redefine to the equivalent nullfs on FreeBSD. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
This commit is contained in:
parent
72f4c77139
commit
0300271bf7
|
@ -1,8 +1,6 @@
|
||||||
package define
|
package define
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// TypeBind is the type for mounting host dir
|
|
||||||
TypeBind = "bind"
|
|
||||||
// TypeVolume is the type for named volumes
|
// TypeVolume is the type for named volumes
|
||||||
TypeVolume = "volume"
|
TypeVolume = "volume"
|
||||||
// TypeTmpfs is the type for mounting tmpfs
|
// TypeTmpfs is the type for mounting tmpfs
|
||||||
|
|
8
libpod/define/mount_freebsd.go
Normal file
8
libpod/define/mount_freebsd.go
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
//go:build freebsd
|
||||||
|
|
||||||
|
package define
|
||||||
|
|
||||||
|
const (
|
||||||
|
// TypeBind is the type for mounting host dir
|
||||||
|
TypeBind = "nullfs"
|
||||||
|
)
|
8
libpod/define/mount_linux.go
Normal file
8
libpod/define/mount_linux.go
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
//go:build linux
|
||||||
|
|
||||||
|
package define
|
||||||
|
|
||||||
|
const (
|
||||||
|
// TypeBind is the type for mounting host dir
|
||||||
|
TypeBind = "bind"
|
||||||
|
)
|
8
libpod/define/mount_unsupported.go
Normal file
8
libpod/define/mount_unsupported.go
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
//go:build !linux && !freebsd
|
||||||
|
|
||||||
|
package define
|
||||||
|
|
||||||
|
const (
|
||||||
|
// TypeBind is the type for mounting host dir
|
||||||
|
TypeBind = "bind"
|
||||||
|
)
|
Loading…
Reference in a new issue