]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fat (exportfs): fix dentry reconnection
authorSteven J. Magnani <steve@digidescorp.com>
Fri, 7 Sep 2012 00:24:59 +0000 (10:24 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:32 +0000 (15:36 +1000)
commitd4b5b2c61bf33d29c8e5e74f6c6b11c2e0d316a6
tree728222d44f089bb9c310b085799dfc65826cfb60
parent9f7a1ffdc9e8d85b4285d4e162e01164a46f76ed
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