diff options
| author | Eric Biggers <ebiggers@google.com> | 2019-10-29 00:04:39 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2019-10-30 09:11:29 -0700 |
| commit | 4eb1ea869703873f6f4192dcec5262f33a497fcb (patch) | |
| tree | 5f2092ddb6a6768193d339b7a4b6a926474cff01 /util/errors.go | |
| parent | d0c3c98acd02d412d271ebb9608d8a9cd0e23a32 (diff) | |
filesystem: switch to using /proc/self/mountinfo
Change loadMountInfo() to load the mounts directly from
/proc/self/mountinfo, rather than use the mntent.h C library calls.
This is needed for correct handling of bind mounts and of "/dev/root",
since /proc/self/mountinfo has extra fields which show the mounted
subtree and the filesystem's device number. /proc/mounts lacks these
fields, and the C library calls can't provide them.
To start, this patch just switches to using /proc/self/mountinfo,
without doing anything with the extra fields yet.
As a bonus, this eliminates all C code in mountpoint.go.
Diffstat (limited to 'util/errors.go')
0 files changed, 0 insertions, 0 deletions