Skip to main content

parse_mount_table

Function parse_mount_table 

Source
pub fn parse_mount_table(text: &[u8]) -> Vec<MountFacts>
Expand description

What: Every readable mount of the table text, in file order. Why: File order is mount order, so when two mounts share a mount point the later one is the visible one.

In TS you’d write (pseudocode):

const parseMountTable = (text: Uint8Array): MountFacts[] => lines(text).map(parseLine).filter(Boolean);