mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +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
4 changed files with 24 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
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…
Add table
Reference in a new issue