Skip to content

Commit

Permalink
filter out few virtual filesystems on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
arpankapoor committed Dec 23, 2024
1 parent b4a2cf0 commit a6c45f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/unix/linux/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ fn get_all_list(container: &mut Vec<Disk>, content: &str, refresh_kind: DiskRefr
"pstore" | // https://www.kernel.org/doc/Documentation/ABI/testing/pstore
"squashfs" | // squashfs is a compressed read-only file system (for snaps)
"rpc_pipefs" | // The pipefs pseudo file system service
"iso9660" // optical media
"iso9660" | // optical media
"devpts" | // https://www.kernel.org/doc/Documentation/filesystems/devpts.txt
"hugetlbfs" | // https://www.kernel.org/doc/Documentation/vm/hugetlbfs_reserv.txt
"mqueue" // https://man7.org/linux/man-pages/man7/mq_overview.7.html
=> true,
"tmpfs" => !cfg!(feature = "linux-tmpfs"),
// calling statvfs on a mounted CIFS or NFS may hang, when they are mounted with option: hard
Expand Down

0 comments on commit a6c45f3

Please sign in to comment.