Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 300171 | Differences between
and this patch

Collapse All | Expand All

(-)munin-1.4.3/plugins/node.d.linux/iostat_ios.in.bak (-6 / +10 lines)
Lines 59-70 Link Here
59
59
60
sub filter {
60
sub filter {
61
    my ($major, $minor, $tmpnam) = @_;
61
    my ($major, $minor, $tmpnam) = @_;
62
    return 0 if ($major ==   1); # RAM devices
62
    if(defined($major)) {
63
    return 0 if ($major ==   9); # MD devices
63
        return 0 if ($major ==   1); # RAM devices
64
    return 0 if ($major ==  58); # LVM devices
64
        return 0 if ($major ==   9); # MD devices
65
    return 0 if ($major == 254); # LVM2 devices
65
        return 0 if ($major ==  58); # LVM devices
66
    return 0 if ($tmpnam =~ /part\d+$/);
66
        return 0 if ($major == 254); # LVM2 devices
67
    return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/);
67
    }
68
    if(defined($tmpnam)) {
69
        return 0 if ($tmpnam =~ /part\d+$/);
70
        return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/);
71
    }
68
72
69
    return 1;
73
    return 1;
70
}
74
}

Return to bug 300171