#linux #fs

lfs-core

give information on mounted disks

25 releases

0.11.2 Oct 14, 2023
0.11.1 Dec 10, 2022
0.11.0 Mar 4, 2022
0.7.0 Dec 30, 2021
0.3.1 Oct 18, 2020

#75 in #fs

Download history 770/week @ 2024-03-31 634/week @ 2024-04-07 610/week @ 2024-04-14 855/week @ 2024-04-21 914/week @ 2024-04-28 688/week @ 2024-05-05 492/week @ 2024-05-12 449/week @ 2024-05-19 499/week @ 2024-05-26 574/week @ 2024-06-02 805/week @ 2024-06-09 535/week @ 2024-06-16 352/week @ 2024-06-23 353/week @ 2024-06-30 488/week @ 2024-07-07 606/week @ 2024-07-14

1,838 downloads per month
Used in 8 crates (5 directly)

MIT license

24KB
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 options = lfs_core::ReadOptions::default();
let mut mounts = lfs_core::read_mounts(&options).unwrap();
// only keep the one with size stats
mounts.retain(|m| m.stats.is_ok());
// 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

~2.6–4MB
~75K SLoC