summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-07-08 06:55:13 +0200
committerCanop <cano.petrole@gmail.com>2021-07-08 06:55:13 +0200
commit7b3218dcd6257fcae352097e1a82228fe9145b08 (patch)
tree09077e7c5f18778a48d588b12b0201d6bd83875e
parentdb382fada6bd37e8f09a1764ba226a81e8b0abaa (diff)
version 0.7.6v0.7.6
Fix #7
-rw-r--r--CHANGELOG.md5
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml4
-rw-r--r--README.md7
-rw-r--r--src/fmt_mount.rs6
5 files changed, 15 insertions, 13 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e80976..6386d1a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,6 @@
-### next
-* better identification of mapped devices (for example LVM)
+<a name="v0.7.6"></a>
+### v0.7.6 - 2021/07/08
+* better identify mapped devices (such as LVM)
<a name="v0.7.5"></a>
### v0.7.5 - 2021/07/01
diff --git a/Cargo.lock b/Cargo.lock
index b58ea59..7d9ac5b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -212,7 +212,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "lfs"
-version = "0.7.6-dev"
+version = "0.7.6"
dependencies = [
"argh",
"crossterm",
@@ -467,9 +467,9 @@ dependencies = [
[[package]]
name = "termimad"
-version = "0.13.0"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a09f249613ba31188fd902030fcbc94bbdebb5e881fe7fcb58be16fb50e0d77a"
+checksum = "72cc07d71829847df3a04fe2341f0598676b1faf377d0965c48cb922241273d7"
dependencies = [
"crossbeam",
"crossterm",
diff --git a/Cargo.toml b/Cargo.toml
index f4df5ad..c197634 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "lfs"
-version = "0.7.6-dev"
+version = "0.7.6"
authors = ["dystroy <denys.seguret@gmail.com>"]
edition = "2018"
keywords = ["linux", "filesystem", "fs"]
@@ -18,7 +18,7 @@ lfs-core = "0.4.2"
minimad = "0.8.0"
serde ="1.0"
serde_json = "1.0"
-termimad = "0.13.0"
+termimad = "0.14.0"
[patch.crates-io]
#minimad = { path = "../minimad" }
diff --git a/README.md b/README.md
index d7726c4..f8120e6 100644
--- a/README.md
+++ b/README.md
@@ -19,12 +19,13 @@ A linux utility listing your filesystems.
![screenshot](doc/screenshot.png)
-Besides traditional columns, the `disk` column helps you identify your "disk":
+Besides traditional columns, the `disk` column helps you identify your "disk" (or the mapping standing between your filesystem and the physical device) :
* `remov` : a removable device (such as an USB key)
* `HDD` : a rotational disk
-* `SSD` : a solid state storage device, usually quite fast
+* `SSD` : a solid state storage device
* `RAM` : an in-memory device (such as zram)
+* `LVM` : a device mapped to one or several disks using LVM
* `crypt` : a crypted disk
All sizes are based on the current SI recommendations: 1M is one million bytes.
@@ -48,7 +49,7 @@ cargo install lfs
```
lfs
```
-By default, **lfs** only shows mount points backed by normal block devices (i.e. disks).
+By default, **lfs** only shows mount points backed by normal block devices, which are usually the "storage" filesystems you're interested into.
To show them all, use
diff --git a/src/fmt_mount.rs b/src/fmt_mount.rs
index 4ed47bc..2f19917 100644
--- a/src/fmt_mount.rs
+++ b/src/fmt_mount.rs
@@ -20,7 +20,7 @@ static MD: &str = r#"
|id|dev|filesystem|disk|type|used|use%|avail|size|mount point
|-:|:-|:-|:-:|:-:|-:|-:|-:|:-
${mount-points
-|${id}|${dev-major}:${dev-minor}|${fs}|${disk}|${fs-type}|`${used}`|`${use-percents}` ~~${bar}~~|*${available}*|**${size}**|${mount-point}
+|${id}|${dev-major}:${dev-minor}|${fs}|${disk}|${fs-type}|~~${used}~~|~~${use-percents}~~ `${bar}`|*${available}*|**${size}**|${mount-point}
}
|-:
"#;
@@ -64,8 +64,8 @@ pub fn print(mounts: &[Mount], color: bool) -> Result<()> {
fn make_colored_skin() -> MadSkin {
MadSkin {
bold: CompoundStyle::with_fg(AnsiValue(SIZE_COLOR)), // size
- inline_code: CompoundStyle::with_fg(AnsiValue(USED_COLOR)), // use%
- strikeout: CompoundStyle::with_fgbg(AnsiValue(USED_COLOR), AnsiValue(AVAI_COLOR)), // use bar
+ inline_code: CompoundStyle::with_fgbg(AnsiValue(USED_COLOR), AnsiValue(AVAI_COLOR)), // use bar
+ strikeout: CompoundStyle::with_fg(AnsiValue(USED_COLOR)), // use%
italic: CompoundStyle::with_fg(AnsiValue(AVAI_COLOR)), // available
..Default::default()
}