]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Ignore /snap mountpoints when checking disk usage 609/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 16 Feb 2021 14:46:45 +0000 (09:46 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 16 Feb 2021 14:46:45 +0000 (09:46 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/files/libexec/diskusage.pl

index 49200dadeb2514fdb66be3499d91b59738569414..d4d21abca9cbbca2522a84bb484cbac087be8787 100644 (file)
@@ -56,7 +56,7 @@ my $crit = 0;
 my @parts;
 my $hostname = `hostname`;
 chomp $hostname;
-@parts = `mount | grep -vi fuse`;
+@parts = `mount | grep -vi fuse\|/snap`;
 
 #if ( $hostname eq 'zartan' ) {
 #      @parts = `mount`;