aboutsummaryrefslogtreecommitdiffstats
path: root/lib/os_mon/src/disksup.erl
diff options
context:
space:
mode:
authorAndrew Thompson <[email protected]>2011-04-03 21:32:02 -0400
committerAndrew Thompson <[email protected]>2011-04-03 21:32:02 -0400
commitca1223e5b5c8b25e92fef0d97a6a12abad8ccd71 (patch)
treea845afe0d3a1bda479597f71fc1738fef1b30fde /lib/os_mon/src/disksup.erl
parent745c4af40595c8b029c2d61ddbe22c6d12950236 (diff)
downloadotp-ca1223e5b5c8b25e92fef0d97a6a12abad8ccd71.tar.gz
otp-ca1223e5b5c8b25e92fef0d97a6a12abad8ccd71.tar.bz2
otp-ca1223e5b5c8b25e92fef0d97a6a12abad8ccd71.zip
Add NetBSD support to memsup and disksup
Diffstat (limited to 'lib/os_mon/src/disksup.erl')
-rw-r--r--lib/os_mon/src/disksup.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/os_mon/src/disksup.erl b/lib/os_mon/src/disksup.erl
index 3340f7ee72..3ee1df759f 100644
--- a/lib/os_mon/src/disksup.erl
+++ b/lib/os_mon/src/disksup.erl
@@ -103,6 +103,7 @@ init([]) ->
Flavor==darwin;
Flavor==linux;
Flavor==openbsd;
+ Flavor==netbsd;
Flavor==irix64;
Flavor==irix ->
start_portprogram();
@@ -267,6 +268,9 @@ check_disk_space({unix, freebsd}, Port, Threshold) ->
check_disk_space({unix, openbsd}, Port, Threshold) ->
Result = my_cmd("/bin/df -k -t ffs", Port),
check_disks_solaris(skip_to_eol(Result), Threshold);
+check_disk_space({unix, netbsd}, Port, Threshold) ->
+ Result = my_cmd("/bin/df -k -t ffs", Port),
+ check_disks_solaris(skip_to_eol(Result), Threshold);
check_disk_space({unix, sunos4}, Port, Threshold) ->
Result = my_cmd("df", Port),
check_disks_solaris(skip_to_eol(Result), Threshold);