]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: Add the mount option "nosharecache"
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 16 May 2007 20:53:28 +0000 (16:53 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:48 +0000 (23:40 -0400)
commit75180df2ed467866ada839fe73cf7cc7d75c0a22
tree35966d0b22e58cc49ddee5b5f8d0e64c577dc576
parent8007122520f0a3599bdc4df47358a5d83b2574aa
NFS: Add the mount option "nosharecache"

Prior to David Howell's mount changes in 2.6.18, users who mounted
different directories which happened to be from the same filesystem on the
server would get different super blocks, and hence could choose different
mount options. As long as there were no hard linked files that crossed from
one subtree to another, this was quite safe.
Post the changes, if the two directories are on the same filesystem (have
the same 'fsid'), they will share the same super block, and hence the same
mount options.

Add a flag to allow users to elect not to share the NFS super block with
another mount point, even if the fsids are the same. This will allow
users to set different mount options for the two different super blocks, as
was previously possible. It is still up to the user to ensure that there
are no cache coherency issues when doing this, however the default
behaviour will be to share super blocks whenever two paths result in
the same fsid.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c
include/linux/nfs4_mount.h
include/linux/nfs_mount.h