Skip to content

Commit

Permalink
nfs: Add "lookupcache" to displayed mount options
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
plopresti authored and Trond Myklebust committed Aug 10, 2010
1 parent f5a7367 commit 9b00c64
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

/*
Expand Down

0 comments on commit 9b00c64

Please sign in to comment.