File 0260-os_mon-include-HAMMER2-FS-in-df-1-for-DragonFly.patch of Package erlang

From e2ef371964046d59f6410ab0aef883b939ddec50 Mon Sep 17 00:00:00 2001
From: Michael Neumann <mneumann@ntecs.de>
Date: Thu, 8 Aug 2024 20:23:53 +0200
Subject: [PATCH] os_mon - include HAMMER2-FS in df(1) for DragonFly

HAMMER2 is the default file-system on DragonFly.

Running:

    /bin/df -k -t ufs,hammer /

results in empty output (on my DragonFly system), while running:

    /bin/df -k -t ufs,hammer,hammer2 /

results in:

    Filesystem     1K-blocks     Used     Avail Capacity  Mounted on
    dev/da0s1d     697244672 68285248 628959424    10%    /
---
 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 471b01d1b7..c541bee24b 100644
--- a/lib/os_mon/src/disksup.erl
+++ b/lib/os_mon/src/disksup.erl
@@ -442,7 +442,7 @@ run_df(Path, {unix, linux}, Port) ->
 run_df(Path, {unix, posix}, Port) ->
     my_cmd("df -k -P " ++ Path, Port);
 run_df(Path, {unix, dragonfly}, Port) ->
-    my_cmd("/bin/df -k -t ufs,hammer " ++ Path, Port);
+    my_cmd("/bin/df -k -t ufs,hammer,hammer2 " ++ Path, Port);
 run_df(Path, {unix, freebsd}, Port) ->
     my_cmd("/bin/df -k -l " ++ Path, Port);
 run_df(Path, {unix, openbsd}, Port) ->
-- 
2.43.0

openSUSE Build Service is sponsored by