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 <manjunath.b.patil@xxxxxxxxxx> --- tools/nfs-iostat/nfs-iostat.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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() ] -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html