diff options
author | Lukas Larsson <[email protected]> | 2019-06-19 10:45:09 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2019-06-19 10:45:09 +0200 |
commit | 7eeb6a98623fce87d13d3080430bec0bc412c570 (patch) | |
tree | 6ffead928f9abd799472b5016664554ffe4ce814 | |
parent | 0a5c428f264a875d4c704e82ea9f727aebbe0a72 (diff) | |
download | otp-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.erl | 2 |
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), |