mount: use MNT_* flags from golang.org/x/sys/unix on freebsd#36
mount: use MNT_* flags from golang.org/x/sys/unix on freebsd#36cpuguy83 merged 1 commit intomoby:masterfrom
Conversation
Bump golang.org/x/sys/unix to the latest version and use the MNT_* constants defined there instead of getting them from sys/mount.h using cgo. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM, nice 👍
@cpuguy83 @kolyshkin PTAL
|
Nice, thank you @tklauser! Not really related, but is there any chance FreeBSD's sys/mountinfo/mountinfo_freebsd.go Line 20 in 4a8c65a |
@kolyshkin Thanks. I assume you meant it seems it is not a syscall by itself but using the So it should be fairly straight-forward to implement |
|
@kolyshkin ^ were you interested in contributing that change? |
Bump
golang.org/x/sys/unixto the latest version and use theMNT_*constants defined there instead of getting them from
sys/mount.husingcgo.
Full diff for the
golang.org/x/sys/unixbump: golang/sys@d5e6a3e...aee5d88