]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fat (exportfs): fix dentry reconnection
authorSteven J. Magnani <steve@digidescorp.com>
Fri, 21 Sep 2012 01:02:22 +0000 (11:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Sep 2012 08:46:44 +0000 (18:46 +1000)
commitc3c26462c2cc5750a40a4c329ce48e44a4e2cff3
treed83755d965b6073d69b7ecc5c8ccb44e4b414e7b
parentea7ea8a6e7cd7025a9d0ec75b7d68a1f112c770a
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>
Acked-by: 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