aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-06-19 10:45:09 +0200
committerLukas Larsson <[email protected]>2019-06-19 10:45:09 +0200
commit7eeb6a98623fce87d13d3080430bec0bc412c570 (patch)
tree6ffead928f9abd799472b5016664554ffe4ce814
parent0a5c428f264a875d4c704e82ea9f727aebbe0a72 (diff)
downloadotp-7eeb6a98623fce87d13d3080430bec0bc412c570.tar.gz
otp-7eeb6a98623fce87d13d3080430bec0bc412c570.tar.bz2
otp-7eeb6a98623fce87d13d3080430bec0bc412c570.zip
os_mon: Make disk_sup ignore squashfs
Ideally we should ignore all read only filesystems, but this will have to do for now. We do this as we don't want disk_sup to report that a filesystem is almost full if it is read-only.
-rw-r--r--lib/os_mon/src/disksup.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/os_mon/src/disksup.erl b/lib/os_mon/src/disksup.erl
index 5118d807e1..4253067c90 100644
--- a/lib/os_mon/src/disksup.erl
+++ b/lib/os_mon/src/disksup.erl
@@ -264,7 +264,7 @@ check_disk_space({unix, irix}, Port, Threshold) ->
Result = my_cmd("/usr/sbin/df -lk",Port),
check_disks_irix(skip_to_eol(Result), Threshold);
check_disk_space({unix, linux}, Port, Threshold) ->
- Result = my_cmd("/bin/df -lk", Port),
+ Result = my_cmd("/bin/df -lk -x squashfs", Port),
check_disks_solaris(skip_to_eol(Result), Threshold);
check_disk_space({unix, posix}, Port, Threshold) ->
Result = my_cmd("df -k -P", Port),