ignore docker paths
This commit is contained in:
parent
42e0c339b3
commit
ff1d80a7c2
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ my @ignoreformats = qw(
|
||||||
debugfs securityfs swap iso9660 udf cgroup
|
debugfs securityfs swap iso9660 udf cgroup
|
||||||
hugetlbfs mqueue pstore selinuxfs configfs
|
hugetlbfs mqueue pstore selinuxfs configfs
|
||||||
);
|
);
|
||||||
|
my @ignorepaths = (qr(/var/lib/docker/));
|
||||||
|
|
||||||
my $color_ok = "#78af78";
|
my $color_ok = "#78af78";
|
||||||
my $color_warn = "#ffff00";
|
my $color_warn = "#ffff00";
|
||||||
|
@ -56,6 +57,7 @@ for my $f (@filesystems) {
|
||||||
my $format = $fs->format($f);
|
my $format = $fs->format($f);
|
||||||
|
|
||||||
next if grep { /^$format$/xsm } @ignoreformats;
|
next if grep { /^$format$/xsm } @ignoreformats;
|
||||||
|
next if grep { $mount_point =~ $_ } @ignorepaths;
|
||||||
|
|
||||||
my $df = df($mount_point, 1024); # 1k blocks
|
my $df = df($mount_point, 1024); # 1k blocks
|
||||||
my $blocks = $df->{blocks};
|
my $blocks = $df->{blocks};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue