Codebase list logwatch / b6f99c6
zz-disk_space: Support GNU/kFreeBSD Thanks: mattpays <mailing@schiznik.com> Closes: 576735 Willi Mann 12 years ago
2 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
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 --
11 0002-02-bug536472-treat-compressed-logfiles-always-as-arc.patch
22 0003-services-dpkg-Support-the-new-format-for-remove-line.patch
33 0004-Remove-final-white-space-from-logwatch-text-output.patch
4 0005-zz-disk_space-Support-GNU-kFreeBSD.patch