Blame SOURCES/sos-bz1886782-exclude-panfs.patch

900d18
From 6a4e3fb718a5c3249425dc4ae167b977abdb7f2e Mon Sep 17 00:00:00 2001
900d18
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
900d18
Date: Thu, 8 Oct 2020 11:51:13 +0200
900d18
Subject: [PATCH] [filesys] never collect content of /proc/fs/panfs
900d18
MIME-Version: 1.0
900d18
Content-Type: text/plain; charset=UTF-8
900d18
Content-Transfer-Encoding: 8bit
900d18
900d18
panfs (from Panasas company) provides statistics under /proc/fs/panfs
900d18
which makes sosreports become several hundreds of GBs. This path must
900d18
hence be blacklisted.
900d18
900d18
Resolves: #2262
900d18
900d18
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
900d18
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
900d18
---
900d18
 sos/report/plugins/filesys.py | 2 ++
900d18
 1 file changed, 2 insertions(+)
900d18
900d18
diff --git a/sos/report/plugins/filesys.py b/sos/report/plugins/filesys.py
900d18
index 3baec3ce..57f608d0 100644
900d18
--- a/sos/report/plugins/filesys.py
900d18
+++ b/sos/report/plugins/filesys.py
900d18
@@ -43,6 +43,8 @@ class Filesys(Plugin, DebianPlugin, UbuntuPlugin, CosPlugin):
900d18
             "lslocks"
900d18
         ])
900d18
 
900d18
+        self.add_forbidden_path('/proc/fs/panfs')
900d18
+
900d18
         if self.get_option('lsof'):
900d18
             self.add_cmd_output("lsof -b +M -n -l -P", root_symlink="lsof")
900d18
 
900d18
-- 
900d18
2.26.2
900d18