• Amir Goldstein's avatar
    nfsd: report per-export stats · 20ad856e
    Amir Goldstein authored
    Collect some nfsd stats per export in addition to the global stats.
    
    A new nfsdfs export_stats file is created.  It uses the same ops as the
    exports file to iterate the export entries and we use the file's name to
    determine the reported info per export.  For example:
    
     $ cat /proc/fs/nfsd/export_stats
     # Version 1.1
     # Path Client Start-time
     #	Stats
     /test	localhost	92
    	fh_stale: 0
    	io_read: 9
    	io_write: 1
    
    Every export entry reports the start time when stats collection
    started, so stats collecting scripts can know if stats where reset
    between samples.
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    20ad856e
export.h 3.33 KB