Merge pull request #535 from grooverdan/snap

skip snap filesystems
This commit is contained in:
Jean-Marie Renouard 2021-01-28 18:21:43 +01:00 committed by GitHub
commit 47ebbbca75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1490,7 +1490,7 @@ sub get_fs_info {
$v;
} @sinfo;
foreach my $info (@sinfo) {
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 % total space";