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

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