Merge pull request #718 from Staubiii/patch-3

Ignore snap filesystem for mountpoint cleanup
This commit is contained in:
Jean-Marie Renouard 2023-09-07 14:33:24 +02:00 committed by GitHub
commit 98fc9f5a89
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";