#linux #filesystem #fs

lfs-core

give information on mounted disks

23 releases (10 breaking)

Uses new Rust 2021

0.11.0 Mar 4, 2022
0.10.0 Feb 27, 2022
0.7.0 Dec 30, 2021
0.6.0 Nov 3, 2021
0.3.1 Oct 18, 2020

#148 in Filesystem

Download history 388/week @ 2022-01-25 190/week @ 2022-02-01 257/week @ 2022-02-08 359/week @ 2022-02-15 1090/week @ 2022-02-22 626/week @ 2022-03-01 666/week @ 2022-03-08 446/week @ 2022-03-15 324/week @ 2022-03-22 402/week @ 2022-03-29 292/week @ 2022-04-05 461/week @ 2022-04-12 262/week @ 2022-04-19 403/week @ 2022-04-26 369/week @ 2022-05-03 223/week @ 2022-05-10

1,294 downloads per month
Used in 2 crates

MIT license

23KB
571 lines

MIT Latest Version docs Chat on Miaou

Give information on the mounted disks.

lfs-core provides the data of lfs and of the :fs screen of broot.


lib.rs:

Use lfs_core::read_mounts to get information on all mounted volumes on a unix system.

// get all mount points
let mut mounts = lfs_core::read_mounts().unwrap();
// only keep the one with size stats
mounts.retain(|m| m.stats.is_some());
// print them
for mount in mounts {
dbg!(mount);
}

The lfs application is a viewer for lfs-core and shows you the information you're expected to find in mounts.

Dependencies

~1.3–2.2MB
~57K SLoC