|
|
d50f3a |
diff -up nfs-utils-2.3.3/tools/mountstats/mountstats.py.orig nfs-utils-2.3.3/tools/mountstats/mountstats.py
|
|
|
d50f3a |
--- nfs-utils-2.3.3/tools/mountstats/mountstats.py.orig 2020-12-10 10:48:17.319579958 -0500
|
|
|
d50f3a |
+++ nfs-utils-2.3.3/tools/mountstats/mountstats.py 2020-12-10 10:52:42.481484160 -0500
|
|
|
d50f3a |
@@ -943,10 +943,11 @@ def print_iostat_summary(old, new, devic
|
|
|
d50f3a |
if not old or device not in old:
|
|
|
d50f3a |
stats.display_iostats(time)
|
|
|
d50f3a |
else:
|
|
|
d50f3a |
- old_stats = DeviceData()
|
|
|
d50f3a |
- old_stats.parse_stats(old[device])
|
|
|
d50f3a |
- diff_stats = stats.compare_iostats(old_stats)
|
|
|
d50f3a |
- diff_stats.display_iostats(time)
|
|
|
d50f3a |
+ if ("fstype autofs" not in str(old[device])) and ("fstype autofs" not in str(new[device])):
|
|
|
d50f3a |
+ old_stats = DeviceData()
|
|
|
d50f3a |
+ old_stats.parse_stats(old[device])
|
|
|
d50f3a |
+ diff_stats = stats.compare_iostats(old_stats)
|
|
|
d50f3a |
+ diff_stats.display_iostats(time)
|
|
|
d50f3a |
|
|
|
d50f3a |
def iostat_command(args):
|
|
|
d50f3a |
"""iostat-like command for NFS mount points
|
|
|
d50f3a |
diff -up nfs-utils-2.3.3/tools/nfs-iostat/nfs-iostat.py.orig nfs-utils-2.3.3/tools/nfs-iostat/nfs-iostat.py
|
|
|
d50f3a |
--- nfs-utils-2.3.3/tools/nfs-iostat/nfs-iostat.py.orig 2020-12-10 10:48:17.316579880 -0500
|
|
|
d50f3a |
+++ nfs-utils-2.3.3/tools/nfs-iostat/nfs-iostat.py 2020-12-10 10:52:42.481484160 -0500
|
|
|
d50f3a |
@@ -467,10 +467,13 @@ def parse_stats_file(filename):
|
|
|
d50f3a |
def print_iostat_summary(old, new, devices, time, options):
|
|
|
d50f3a |
stats = {}
|
|
|
d50f3a |
diff_stats = {}
|
|
|
d50f3a |
+ devicelist = []
|
|
|
d50f3a |
if old:
|
|
|
d50f3a |
# Trim device list to only include intersection of old and new data,
|
|
|
d50f3a |
# this addresses umounts due to autofs mountpoints
|
|
|
d50f3a |
- devicelist = [x for x in old if x in devices]
|
|
|
d50f3a |
+ for device in devices:
|
|
|
d50f3a |
+ if "fstype autofs" not in str(old[device]):
|
|
|
d50f3a |
+ devicelist.append(device)
|
|
|
d50f3a |
else:
|
|
|
d50f3a |
devicelist = devices
|
|
|
d50f3a |
|