]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Propagate 'fsc' mount option through automounts
authorDavid Howells <dhowells@redhat.com>
Wed, 23 Sep 2009 18:36:39 +0000 (14:36 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 23 Sep 2009 18:36:39 +0000 (14:36 -0400)
commit06edf459ee3dc0fac0a49c08689c9a3b20684d9d
tree7c1c170e39d50dd105792e25522e249ea371758e
parentb23fb0ae8bab6d365887cbd711ec7dd27c1d7806
NFS: Propagate 'fsc' mount option through automounts

Propagate the NFS 'fsc' mount option through NFS automounts of various types.

This is now required as commit:

commit 9dea326bfaad23231ede0ee363b77ce2e70ad12d
Author: Trond Myklebust <Trond.Myklebust@netapp.com>
Date:   Mon Jun 22 15:09:14 2009 -0400

NFSv4: Replace nfs4_path_walk() with VFS path lookup in a private namespace

uses VFS-driven automounting to reach all submounts barring the root, thus
preventing fscaching from being enabled on any submount other than the root.

This patch gets around that by propagating the NFS_OPTION_FSCACHE flag across
automounts.  If a uniquifier is supplied to a mount then this is propagated to
all automounts of that mount too.

Signed-off-by: David Howells <dhowells@redhat.com>
[Trond: Fixed up the definition of nfs_fscache_get_super_cookie for the
        case of #undef CONFIG_NFS_FSCACHE]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/client.c
fs/nfs/fscache.c
fs/nfs/fscache.h
fs/nfs/super.c