]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fat (exportfs): fix dentry reconnection
authorSteven J. Magnani <steve@digidescorp.com>
Tue, 14 Aug 2012 03:22:45 +0000 (13:22 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 20 Aug 2012 07:08:15 +0000 (17:08 +1000)
commitc9dd183c3f87fbc70864aaef5d5c56863e171744
tree86e3f16e7dce65909ab465972a9166e2e8fec3e5
parent67f815d45360b47c25039367f54c747ad939c42e
fat (exportfs): fix dentry reconnection

Maintain an index of directory inodes by starting cluster, so that
fat_get_parent() can return the proper cached inode rather than inventing
one that cannot be traced back to the filesystem root.

Add a new msdos/vfat binary mount option "nfs" so that FAT filesystems
that are _not_ exported via NFS are not saddled with maintenance of an
index they will never use.

Finally, simplify NFS file handle generation and lookups.  An
ext2-congruent implementation is adequate for FAT needs.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fat/dir.c
fs/fat/fat.h
fs/fat/inode.c
fs/fat/namei_msdos.c
fs/fat/namei_vfat.c
fs/fat/nfs.c