From 6805850049c8380b0c167a6e22b7bf6e2fd8cbe0 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Fri, 10 Jan 2020 22:52:49 +0100 Subject: [PATCH] fsSize() fix excluding loop/snap devices --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/filesystem.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 411041d..4c8eafd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.18.3 | 2020-01-10 | `fsSize()` fix excluding loop/snap devices | | 4.18.2 | 2020-01-10 | `memLayout()` fix memsize linux (modules >= 32 GB) | | 4.18.1 | 2020-01-07 | updated docs | | 4.18.0 | 2020-01-07 | `networkInterfaces()` added dhcp for mac os, added dhcp linux fallback | diff --git a/docs/history.html b/docs/history.html index b2bf6a5..d2f12a7 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,6 +83,11 @@ + + 4.18.3 + 2020-01-10 + fsSize() fix excluding loop/snap devices + 4.18.2 2020-01-10 diff --git a/docs/index.html b/docs/index.html index fd3adb2..18b0625 100644 --- a/docs/index.html +++ b/docs/index.html @@ -168,7 +168,7 @@
systeminformation
-
Current Version: 4.18.2
+
Current Version: 4.18.3
diff --git a/lib/filesystem.js b/lib/filesystem.js index 9f693dd..e3d35a8 100644 --- a/lib/filesystem.js +++ b/lib/filesystem.js @@ -71,7 +71,7 @@ function fsSize(callback) { if (_linux || _freebsd || _openbsd || _netbsd || _darwin) { let cmd = ''; if (_darwin) cmd = 'df -lkP | grep ^/'; - if (_linux) cmd = 'df -lkPT | grep ^/'; + if (_linux) cmd = 'df -lkPTx squashfs | grep ^/'; if (_freebsd || _openbsd || _netbsd) cmd = 'df -lkPT'; exec(cmd, function (error, stdout) { if (!error) {