vendor: update moby/sys for darwin support
The mount package of darwin requires to retrive mountinfo to check if the target of unmount if still mounted or not. Thus pull the upstreamed version of moby/sys to support this operation. Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
This commit is contained in:
4
vendor/github.com/moby/sys/mountinfo/mountinfo_bsd.go
generated
vendored
4
vendor/github.com/moby/sys/mountinfo/mountinfo_bsd.go
generated
vendored
@@ -1,4 +1,4 @@
|
||||
// +build freebsd,cgo openbsd,cgo
|
||||
// +build freebsd,cgo openbsd,cgo darwin,cgo
|
||||
|
||||
package mountinfo
|
||||
|
||||
@@ -21,7 +21,7 @@ func parseMountTable(filter FilterFunc) ([]*Info, error) {
|
||||
|
||||
count := int(C.getmntinfo(&rawEntries, C.MNT_WAIT))
|
||||
if count == 0 {
|
||||
return nil, fmt.Errorf("Failed to call getmntinfo")
|
||||
return nil, fmt.Errorf("failed to call getmntinfo")
|
||||
}
|
||||
|
||||
var entries []C.struct_statfs
|
||||
|
||||
Reference in New Issue
Block a user