summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-10-13 21:59:21 +0200
committerGitHub <noreply@github.com>2021-10-13 21:59:21 +0200
commit98dab67c9b1bfb394152a5633190f46153b1b562 (patch)
tree6dfbf4895b52cc3d73f87635f621da6f77b34839
parent62815a208bab42e72b8bbcb6cf03bd3c42993bb4 (diff)
parent5cb91e9170b2ab67a6807b5aa989d3e8bd95af3b (diff)
Merge pull request #20 from Canop/labels
add filesystem labels to JSON output
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml4
-rw-r--r--src/json.rs1
3 files changed, 6 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 4ce7006..a49467d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -212,7 +212,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "lfs"
-version = "1.1.0"
+version = "1.2.0-dev"
dependencies = [
"argh",
"crossterm",
@@ -226,9 +226,9 @@ dependencies = [
[[package]]
name = "lfs-core"
-version = "0.4.2"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ddf01952bd55b12b51fcd9eba796443b2009ce83d55a1eed3fa13c2f635c232c"
+checksum = "caae204e9cda38366e6c00c50330ee7127c1d1ddf83d492c4fc550bd2c6f50d6"
dependencies = [
"lazy-regex",
"libc",
diff --git a/Cargo.toml b/Cargo.toml
index e43d611..e3fad25 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "lfs"
-version = "1.1.0"
+version = "1.2.0-dev"
authors = ["dystroy <denys.seguret@gmail.com>"]
edition = "2018"
keywords = ["linux", "filesystem", "fs"]
@@ -14,7 +14,7 @@ readme = "README.md"
argh = "0.1.4"
crossterm = "0.20.0"
file-size = "1.0.3"
-lfs-core = "0.4.2"
+lfs-core = "0.5.0"
minimad = "0.8.0"
serde ="1.0"
serde_json = "1.0"
diff --git a/src/json.rs b/src/json.rs
index 5b14d6d..eed5c6e 100644
--- a/src/json.rs
+++ b/src/json.rs
@@ -37,6 +37,7 @@ pub fn output_value(mounts: &[Mount], units: Units) -> Value {
"minor": mount.info.dev.minor,
},
"fs": mount.info.fs,
+ "fs-label": mount.fs_label,
"fs-type": mount.info.fs_type,
"mount-point": mount.info.mount_point,
"disk": disk,