Ignore snap filesystem for mountpoint cleanup

This commit is contained in:
Staubiii 2023-09-04 15:32:52 +02:00 committed by GitHub
parent 4a1a7f40c9
commit 8c92cac191
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1793,7 +1793,7 @@ sub get_fs_info {
$v;
} @iinfo;
foreach my $info (@iinfo) {
next if $info =~ m{(\d+)\t/(run|dev|sys|proc)($|/)};
next if $info =~ m{(\d+)\t/(run|dev|sys|proc|snap)($|/)};
if ( $info =~ /(\d+)\t(.*)/ ) {
if ( $1 > 85 ) {
badprint "mount point $2 is using $1 % of max allowed inodes";