Skip to content

Commit

Permalink
os_mon - include HAMMER2-FS in df(1) for DragonFly
Browse files Browse the repository at this point in the history
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%    /
  • Loading branch information
mneumann committed Aug 8, 2024
1 parent a9c6285 commit e2ef371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/os_mon/src/disksup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit e2ef371

Please sign in to comment.