mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
934328d8ea
Signed-off-by: Amit Krishnan <krish.amit@gmail.com> Signed-off-by: Alexander Morozov <lk4d4@docker.com>
13 lines
288 B
Go
13 lines
288 B
Go
// +build solaris freebsd
|
|
|
|
package container
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func detachMounted(path string) error {
|
|
//Solaris and FreeBSD do not support the lazy unmount or MNT_DETACH feature.
|
|
// Therefore there are separate definitions for this.
|
|
return unix.Unmount(path, 0)
|
|
}
|