diff options
Diffstat (limited to 'net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch')
-rw-r--r-- | net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch b/net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch deleted file mode 100644 index 8fcaaff6ac4a..000000000000 --- a/net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch +++ /dev/null @@ -1,25 +0,0 @@ ---- munin-1.4.3/plugins/node.d.linux/iostat_ios.in.bak 2008-04-13 15:29:37.000000000 +0100 -+++ munin-1.4.3/plugins/node.d.linux/iostat_ios.in 2008-04-13 15:30:59.000000000 +0100 -@@ -59,12 +59,16 @@ - - sub filter { - my ($major, $minor, $tmpnam) = @_; -- return 0 if ($major == 1); # RAM devices -- return 0 if ($major == 9); # MD devices -- return 0 if ($major == 58); # LVM devices -- return 0 if ($major == 254); # LVM2 devices -- return 0 if ($tmpnam =~ /part\d+$/); -- return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/); -+ if(defined($major)) { -+ return 0 if ($major == 1); # RAM devices -+ return 0 if ($major == 9); # MD devices -+ return 0 if ($major == 58); # LVM devices -+ return 0 if ($major == 254); # LVM2 devices -+ } -+ if(defined($tmpnam)) { -+ return 0 if ($tmpnam =~ /part\d+$/); -+ return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/); -+ } - - return 1; - } |