File: partitions.rs

package info (click to toggle)
rust-procfs 0.17.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 664 kB
  • sloc: makefile: 2
file content (7 lines) | stat: -rw-r--r-- 157 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
// List partitions listed in /proc/partitions

fn main() {
    for part_entry in procfs::partitions().unwrap() {
        println!("{part_entry:?}");
    }
}