diff options
author | Canop <cano.petrole@gmail.com> | 2022-03-01 21:08:14 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2022-03-01 21:08:14 +0100 |
commit | a96c971430e26586d7e3b4f3e32e88616b3e8c2b (patch) | |
tree | c2b38d1b719d6fa745f767b576456ca580636fae | |
parent | f44428a61dd750b6e5e8b257a27b788272a0694b (diff) |
don't consider volume of size 0 as normalv2.3.1
Fix #49
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | Cargo.lock | 6 | ||||
-rw-r--r-- | Cargo.toml | 4 | ||||
-rw-r--r-- | src/normal.rs | 3 |
4 files changed, 11 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f97412..16503c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +<a name="v2.3.1"></a> +### v2.3.1 - 2022/03/01 +- don't consider volumes of size 0 as normal - Fix #49 + <a name="v2.3.0"></a> ### v2.3.0 - 2022/02/27 - "remote" column. Remote filesystems included by default - Fix #33 @@ -243,7 +243,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "lfs" -version = "2.3.0" +version = "2.3.1" dependencies = [ "argh", "crossterm", @@ -256,9 +256,9 @@ dependencies = [ [[package]] name = "lfs-core" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1629c9c61167ae4b422a458828367f80dfa8a3858e73d8e131d8377ae2fde36" +checksum = "f8c1f252564182b5880ebf0a870c6deff0346454db9f37af4ee37627c841534e" dependencies = [ "lazy-regex", "libc", @@ -1,6 +1,6 @@ [package] name = "lfs" -version = "2.3.0" +version = "2.3.1" authors = ["dystroy <denys.seguret@gmail.com>"] edition = "2021" keywords = ["linux", "filesystem", "fs"] @@ -15,7 +15,7 @@ rust-version = "1.56" argh = "0.1.7" crossterm = "0.22.1" file-size = "1.0.3" -lfs-core = "0.10.0" +lfs-core = "0.10.1" serde = "1.0" serde_json = "1.0" termimad = "0.20.0" diff --git a/src/normal.rs b/src/normal.rs index e39d80f..5b6c9be 100644 --- a/src/normal.rs +++ b/src/normal.rs @@ -3,7 +3,8 @@ use lfs_core::Mount; /// Determine whether the mounted filesystem is "normal", which /// means it should be listed in standard pub fn is_normal(m: &Mount) -> bool { - ( + m.stats.is_some() + && ( 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.is_remote() |