]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
nfs: Add "lookupcache" to displayed mount options
authorPatrick J. LoPresti <lopresti@gmail.com>
Tue, 10 Aug 2010 21:28:01 +0000 (17:28 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 10 Aug 2010 21:28:01 +0000 (17:28 -0400)
Running "cat /proc/mounts" fails to display the "lookupcache" option.
This oversight cost me a bunch of wasted time recently.

The following simple patch fixes it.

CC: stable <stable@kernel.org>
Signed-off-by: Patrick LoPresti <lopresti@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c

index f1ae39f6cb023a187edc8bba9b87707457734e07..3d0d63c00304e497e302875259049cd04e293ce2 100644 (file)
@@ -655,6 +655,13 @@ static void nfs_show_mount_options(struct seq_file *m, struct nfs_server *nfss,
 
        if (nfss->options & NFS_OPTION_FSCACHE)
                seq_printf(m, ",fsc");
+
+       if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONEG) {
+               if (nfss->flags & NFS_MOUNT_LOOKUP_CACHE_NONE)
+                       seq_printf(m, ",lookupcache=none");
+               else
+                       seq_printf(m, ",lookupcache=pos");
+       }
 }
 
 /*