]> git.baikalelectronics.ru Git - kernel.git/commit
fat (exportfs): fix dentry reconnection
authorSteven J. Magnani <steve@digidescorp.com>
Fri, 5 Oct 2012 00:14:45 +0000 (17:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:09 +0000 (03:05 +0900)
commitb5d1a081e9e04c11ab7679426d51102a8fc8694b
tree1112667a0606e27999a18b8dae574ae8ad01a151
parent3cbd32b9cdd1ddcbcf92a80e17bb20f4f5597bce
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>
Signed-off-by: Linus Torvalds <torvalds@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