Skip to content

Support parsing /proc/self/mountinfo #2

@agrover

Description

@agrover

/proc/self/mountinfo has been present in Linux since 2.6.26 (2008), is documented (in the kernel's Documentation/filesystems/proc.txt) and has more info than /proc/mounts.

I'd like to add support for parsing it, and was wondering if it would be better to a) implement it as a separate, parallel API to the existing MountIter/MountParam (MountInfoIter/MountInfoParam?) or b) change the existing API to use mountinfo (would lose Freq and PassNo fields) or c) change the existing API to use mountinfo if present but fall back to /proc/mounts (Freq, PassNo, and new mountinfo fields (MountId, ParentId, Major, Minor, Root, Optionals, SuperOptions) would all be Options).

Thanks.

cc @tasleson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions