From 0994dc1bb7b348b7bec30f8053841e6d22caf633 Mon Sep 17 00:00:00 2001 From: Manjunath Patil Date: Thu, 5 Oct 2017 10:43:56 -0400 Subject: nfsiostat: avoid parsing "no device mounted ..." line Present nfsiostat includes the "no device mounted ..." line from /proc/self/mountstats as addition description of the preceding mount point. If the preceding mount point is NFS mountpoint, nfsiostat fails to parse this line eventually. This patch avoids parsing this line. Signed-off-by: Manjunath Patil Signed-off-by: Steve Dickson --- tools/nfs-iostat/nfs-iostat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/nfs-iostat/nfs-iostat.py b/tools/nfs-iostat/nfs-iostat.py index 61d15a5..577a23d 100644 --- a/tools/nfs-iostat/nfs-iostat.py +++ b/tools/nfs-iostat/nfs-iostat.py @@ -429,6 +429,8 @@ def parse_stats_file(filename): words = line.split() if len(words) == 0: continue + if line.startswith("no device mounted") : + continue if words[0] == 'device': key = words[4] new = [ line.strip() ] -- cgit