summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-07-02 17:14:51 +0200
committerCanop <cano.petrole@gmail.com>2021-07-02 17:14:51 +0200
commitdb382fada6bd37e8f09a1764ba226a81e8b0abaa (patch)
tree2bdbdb3eb8fa79c0985adbd074c4361ed81c4dca
parentede129cd36a963f2cd8cdb209311cd9870a3235a (diff)
better identify mapped devices such as LVM
-rw-r--r--.gitignore1
-rw-r--r--CHANGELOG.md3
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml4
-rw-r--r--src/main.rs5
5 files changed, 12 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 10ac25b..37b09b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
build
releases
lfs_*.zip
+trav
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4b2b4e6..0e80976 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+### next
+* better identification of mapped devices (for example LVM)
+
<a name="v0.7.5"></a>
### v0.7.5 - 2021/07/01
* fix endless loops in some configurations - Fix #13
diff --git a/Cargo.lock b/Cargo.lock
index a726ea3..b58ea59 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -212,7 +212,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "lfs"
-version = "0.7.5"
+version = "0.7.6-dev"
dependencies = [
"argh",
"crossterm",
@@ -226,9 +226,9 @@ dependencies = [
[[package]]
name = "lfs-core"
-version = "0.4.1"
+version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d29ffb207f96196cf08923532542c6542e94d512b5aa8a9b90186a7e87043704"
+checksum = "ddf01952bd55b12b51fcd9eba796443b2009ce83d55a1eed3fa13c2f635c232c"
dependencies = [
"lazy-regex",
"libc",
diff --git a/Cargo.toml b/Cargo.toml
index 285abe4..f4df5ad 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "lfs"
-version = "0.7.5"
+version = "0.7.6-dev"
authors = ["dystroy <denys.seguret@gmail.com>"]
edition = "2018"
keywords = ["linux", "filesystem", "fs"]
@@ -14,7 +14,7 @@ readme = "README.md"
argh = "0.1.3"
crossterm = "0.20.0"
file-size = "1.0.3"
-lfs-core = "0.4.1"
+lfs-core = "0.4.2"
minimad = "0.8.0"
serde ="1.0"
serde_json = "1.0"
diff --git a/src/main.rs b/src/main.rs
index 76d3d66..ca18f66 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,8 +20,9 @@ fn main() -> lfs_core::Result<()> {
}
let mut mounts = lfs_core::read_mounts()?;
if !args.all {
- mounts.retain(
- |m| m.disk.is_some() && m.info.fs_type != "squashfs", // quite ad-hoc...
+ mounts.retain(|m|
+ m.disk.is_some() // by default only fs with disks are shown
+ && m.info.fs_type != "squashfs", // quite ad-hoc...
);
}
if let Some(path) = &args.path {