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

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