aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-07-18 17:16:48 +0200
committerBjörn-Egil Dahlberg <[email protected]>2013-07-18 17:16:48 +0200
commit926645ce74a10b91686822bade08fa7b7282847a (patch)
tree6115826b1e22afe48ea2a91c4418928c623cb890 /lib
parentc6f452c340ad1749ce91c037a4820ea0feb0a644 (diff)
downloadotp-926645ce74a10b91686822bade08fa7b7282847a.tar.gz
otp-926645ce74a10b91686822bade08fa7b7282847a.tar.bz2
otp-926645ce74a10b91686822bade08fa7b7282847a.zip
os_mon: Fix freebsd diskspace queries
Use 'df -k -l' to query FreeBSD about diskspace on local disks. Previously 'df' -k -t ufs' was used but this will not handle zfs disks. Just use '-l' instead of listing potential filesystems.
Diffstat (limited to 'lib')
-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 8c8bbe843a..24b4c4cce5 100644
--- a/lib/os_mon/src/disksup.erl
+++ b/lib/os_mon/src/disksup.erl
@@ -263,7 +263,7 @@ check_disk_space({unix, dragonfly}, Port, Threshold) ->
Result = my_cmd("/bin/df -k -t ufs,hammer", Port),
check_disks_solaris(skip_to_eol(Result), Threshold);
check_disk_space({unix, freebsd}, Port, Threshold) ->
- Result = my_cmd("/bin/df -k -t ufs", Port),
+ Result = my_cmd("/bin/df -k -l", Port),
check_disks_solaris(skip_to_eol(Result), Threshold);
check_disk_space({unix, openbsd}, Port, Threshold) ->
Result = my_cmd("/bin/df -k -t ffs", Port),