summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-02-23 11:58:26 +0100
committerCanop <cano.petrole@gmail.com>2022-02-23 11:58:26 +0100
commit53ee6a239ae0558ebfb981a3735b1ffb7c630957 (patch)
treeec2c3524cab474d690bc2bafedc826da4464acb1
parentb7ea244a5839269e6a46e9f1f89d043e2a2f6774 (diff)
parent84a00d6750514b710619f46c0e2ae7e94b77766c (diff)
Merge branch 'show-zfs'
-rw-r--r--Cargo.toml2
-rw-r--r--src/main.rs5
2 files changed, 5 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index e0e604b..6d2a179 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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...
);