aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2017-09-06 15:04:04 +0200
committerBryn M. Reeves <bmr@redhat.com>2017-10-20 16:32:14 +0100
commit1db9114541a38c4fe4cbc8041f2d4bf039bea5d2 (patch)
tree13dd18200561bf2996cb23e346b24175e13cea71
parent8b3b8acd47da70a5d92fcde1c4919f8558a15e29 (diff)
downloadsos-1db9114541a38c4fe4cbc8041f2d4bf039bea5d2.tar.gz
[filesys] call df commands with autofs excluded
To prevent timeouts of "df" commands when using a huge amount of direct mappings on autofs. Resolves: #1093 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/filesys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/filesys.py b/sos/plugins/filesys.py
index 7113340d..c48293ab 100644
--- a/sos/plugins/filesys.py
+++ b/sos/plugins/filesys.py
@@ -36,9 +36,9 @@ class Filesys(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/proc/mounts"
])
self.add_cmd_output("mount -l", root_symlink="mount")
- self.add_cmd_output("df -al", root_symlink="df")
+ self.add_cmd_output("df -al -x autofs", root_symlink="df")
self.add_cmd_output([
- "df -ali",
+ "df -ali -x autofs",
"findmnt"
])