File 0700-os_mon-Make-disk_sup-ignore-squashfs.patch of Package erlang

From 7eeb6a98623fce87d13d3080430bec0bc412c570 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Wed, 19 Jun 2019 10:45:09 +0200
Subject: [PATCH] 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.
---
 lib/os_mon/src/disksup.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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),
-- 
2.16.4

openSUSE Build Service is sponsored by