zz-disk_space: Support GNU/kFreeBSD
Thanks: mattpays <mailing@schiznik.com>
Closes: 576735
Willi Mann
12 years ago
0 | From: mattpays <mailing@schiznik.com> | |
1 | Date: Sat, 5 Nov 2011 20:27:10 +0100 | |
2 | Subject: zz-disk_space: Support GNU/kFreeBSD | |
3 | ||
4 | This patch adds special df options to ensure that zz-disk_space does not | |
5 | report full filesystems where this does not make any sense. | |
6 | ||
7 | Closes: 576735 | |
8 | --- | |
9 | scripts/services/zz-disk_space | 2 ++ | |
10 | 1 files changed, 2 insertions(+), 0 deletions(-) | |
11 | ||
12 | diff --git a/scripts/services/zz-disk_space b/scripts/services/zz-disk_space | |
13 | index e2315d7..c22d156 100755 | |
14 | --- a/scripts/services/zz-disk_space | |
15 | +++ b/scripts/services/zz-disk_space | |
16 | @@ -145,6 +145,8 @@ sub DiskSpace () | |
17 | $df_options = "-l"; | |
18 | } elsif ($OSname eq "AIX") { | |
19 | $df_options = "-P"; | |
20 | + } elsif ($OSname eq "GNU/kFreeBSD") { | |
21 | + $df_options = "-h -l -x tmpfs -x udf -x iso9660 -x devfs -x linprocfs -x sysfs -x fdescfs"; | |
22 | } else { | |
23 | $df_options = "-l"; | |
24 | } | |
25 | -- |