linux-hardened/fs/fat
Namjae Jeon f1e6fb0ab4 fat (exportfs): rebuild directory-inode if fat_dget()
This patch enables rebuilding of directory inodes which are not present in
the cache.This is done by traversing the disk clusters to find the
directory entry of the parent directory and using its i_pos to build the
inode.

The traversal is done by fat_scan_logstart() which is similar to
fat_scan() but matches i_pos values instead of names.fat_scan_logstart()
needs an inode parameter to work, for which a dummy inode is created by
it's caller fat_rebuild_parent().  This dummy inode is destroyed after the
traversal completes.

All this is done  only if the nostale_ro nfs mount option is specified.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ravishankar N <ravi.n1@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.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>
2013-04-29 18:28:41 -07:00
..
cache.c fs/fat: fix two checkpatch issues in cache.c 2012-10-06 03:05:10 +09:00
dir.c fat (exportfs): rebuild directory-inode if fat_dget() 2013-04-29 18:28:41 -07:00
fat.h fat (exportfs): rebuild directory-inode if fat_dget() 2013-04-29 18:28:41 -07:00
fatent.c fat: no need to reset EOF in ent_put for FAT32 2012-10-06 03:05:12 +09:00
file.c fat: restructure export_operations 2013-04-29 18:28:40 -07:00
inode.c fat (exportfs): rebuild directory-inode if fat_dget() 2013-04-29 18:28:41 -07:00
Kconfig vfat: Note the NLS requirement 2009-04-17 09:32:11 -07:00
Makefile fat (exportfs): move NFS support code 2012-10-06 03:05:09 +09:00
misc.c fat: fix incorrect function comment 2012-12-20 17:40:20 -08:00
namei_msdos.c fs: Limit sys_mount to only request filesystem modules. 2013-03-03 19:36:31 -08:00
namei_vfat.c fs: Limit sys_mount to only request filesystem modules. 2013-03-03 19:36:31 -08:00
nfs.c fat (exportfs): rebuild directory-inode if fat_dget() 2013-04-29 18:28:41 -07:00