Skip to content

Commit

Permalink
[filesys] skip filesystems picked up by other plugins
Browse files Browse the repository at this point in the history
Fix forbidding panfs - add_forbidden_path() needs to be called prior
to add_copy_spec() for it to be useful.
Skip /proc/fs/FS for FS picked up by other plugins

Signed-off-by: Nathaniel Clark <[email protected]>
  • Loading branch information
utopiabound committed Sep 27, 2023
1 parent 524d08d commit 712f5a4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions sos/report/plugins/filesys.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ class Filesys(Plugin, DebianPlugin, UbuntuPlugin, CosPlugin):
]

def setup(self):
self.add_forbidden_path([
# cifs plugin
'/proc/fs/cifs',
# lustre plugin
'/proc/fs/ldiskfs',
# nfs plugin
'/proc/fs/nfsd',
'/proc/fs/nfsfs',
# panfs (from Panasas company) provides statistics which can be
# very large (100s of GB)
'/proc/fs/panfs',
# xfs plugin
'/proc/fs/xfs'
])

self.add_copy_spec([
"/proc/fs/",
"/proc/mounts",
Expand All @@ -56,8 +71,6 @@ def setup(self):
"lslocks"
])

self.add_forbidden_path('/proc/fs/panfs')

if self.get_option('lsof'):
self.add_cmd_output("lsof -b +M -n -l -P", root_symlink="lsof",
priority=50)
Expand Down

0 comments on commit 712f5a4

Please sign in to comment.