diff options
author | Canop <cano.petrole@gmail.com> | 2022-02-23 11:58:26 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-02-23 11:58:26 +0100 |
commit | 53ee6a239ae0558ebfb981a3735b1ffb7c630957 (patch) | |
tree | ec2c3524cab474d690bc2bafedc826da4464acb1 | |
parent | b7ea244a5839269e6a46e9f1f89d043e2a2f6774 (diff) | |
parent | 84a00d6750514b710619f46c0e2ae7e94b77766c (diff) |
Merge branch 'show-zfs'
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/main.rs | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,6 @@ [package] name = "lfs" -version = "2.0.1" +version = "2.0.2-show-lfs" authors = ["dystroy <denys.seguret@gmail.com>"] edition = "2021" keywords = ["linux", "filesystem", "fs"] diff --git a/src/main.rs b/src/main.rs index 2851098..554f049 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,10 @@ fn main() { }; if !args.all { mounts.retain(|m| - m.disk.is_some() // by default only fs with disks are shown + ( + m.disk.is_some() // by default only fs with disks are shown + || m.info.fs_type == "zfs" // unless it's zfs - see https://github.com/Canop/lfs/issues/32 + ) && !m.info.bound // removing bound mounts && m.info.fs_type != "squashfs", // quite ad-hoc... ); |