diffs and relevant changes: docker/docker: https://github.com/docker/docker/compare/c2cc352355d4c26be60be8ea3a1acfddc20fdfd3...af34b94a78a194ae9bce48a200241d08c05b7187 - replace pkg/symlink with github.com/moby/sys/symlink moby/sys: https://github.com/moby/sys/compare/6154f11e6840c0d6b0dbb23f4125a6134b3013c9...1bc8673b57550ddf85262eb0fed0aac651a37dab changes: - mount, mountinfo: Add support for OpenBSD in addition to FreeBSD - mount, mountinfo: Exclude macOS (darwin) - mount.RecursiveUnmount(): minor improvements - mount.RecursiveUnmount: add a fast path - mount: bump mountinfo to v0.3.1 - mount: Some refactor and improved GoDoc about Windows support - mount: use MNT_* flags from golang.org/x/sys/unix on freebsd (reduces use of cgo) - mountinfo.Mounted: add fast path for Linux using openat2 - mountinfo.Mounted: optimize by adding fast paths - mountinfo: correctness improvements - mountinfo: deprecate PidMountInfo - mountinfo: fix not showing package doc, typos - mountinfo: fix path unescaping - mountinfo: make GetMountinfoFromReader Linux-specific - mountinfo: rename FstypeFilter -> FSTypeFilter, fix FilterFunc docs - mountinfo: use idiomatic naming for fields - Migrate github.com/docker/docker/pkg/symlink Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
379 B
Go
19 lines
379 B
Go
// +build !windows,!linux,!freebsd,!openbsd freebsd,!cgo openbsd,!cgo
|
|
|
|
package mountinfo
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
var errNotImplemented = fmt.Errorf("not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
|
|
|
|
func parseMountTable(_ FilterFunc) ([]*Info, error) {
|
|
return nil, errNotImplemented
|
|
}
|
|
|
|
func mounted(path string) (bool, error) {
|
|
return false, errNotImplemented
|
|
}
|