mount: replace mountinfo handling with moby/sys/mountinfo

Trying to reduce duplicated effort in maintaining a mountinfo
parser, this patch replaces the local implementation with the
implementation in github.com/moby/sys, which is actively maintained
and contains various optimizations.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2020-09-22 12:05:05 +02:00
parent 7c6d710bcf
commit fb464b94d3
20 changed files with 855 additions and 841 deletions

3
vendor/modules.txt vendored
View File

@@ -245,6 +245,9 @@ github.com/klauspost/compress/zstd/internal/xxhash
github.com/matttproud/golang_protobuf_extensions/pbutil
# github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible
github.com/mistifyio/go-zfs
# github.com/moby/sys/mountinfo v0.4.0
## explicit
github.com/moby/sys/mountinfo
# github.com/moby/sys/symlink v0.1.0
## explicit
github.com/moby/sys/symlink