[lkml]   [2013]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v6 0/7] fat (exportfs): support stale_rw and nostale_ro mount options.
From: Namjae Jeon <>

This patch set eliminates the client side ESTALE errors when a FAT partition
exported over NFS has it's dentries evicted from the cache. The idea is to
find the on-disk location_'i_pos' of the dirent of the inode that has been
evicted and use it to rebuild the inode.

Change log
Dummy inode approach to eliminate custom function fat_traverse_cluster().

Modified fat_ent_read() arguments so that the custom function
fat_read_next_clus() can be eliminated.

v(no name):
Define two nfs export_operation structures, one for 'stale_rw' mounts and
the other for 'nostale_ro'

fat_nfs_get_inode does not hold i_mutex of parent directory. So introduce

Instead of assigning i_pos to inode->i_ino, assign it to kstat->ino

Dropped busy-list approach and made the filesystem read only when
rebuilding evicted inodes, by providing stale_rw and nostale_ro mount options

Introduced a list of busy i_pos values for inodes that are unlinked but
having open file handles. Did this to avoid assigning such i_pos values to new
files created at same location.

Permanent inode number based approach by assigning i_pos to i_ino.
Added custom function fat_read_next_clus() and fat_traverse_cluster()
to read disk entries.

Namjae Jeon (7):
fat: Introduce 2 new values for the -o nfs mount option
fat: move fat_i_pos_read to fat.h
fat: introduce a helper fat_get_blknr_offset()
fat: restructure export_operations
fat (exportfs): rebuild inode if ilookup() fails
fat (exportfs): rebuild directory-inode if fat_dget() fails
Documentation: update nfs option in filesystem/vfat.txt

 \ /
  Last update: 2013-02-09 16:41    [W:0.022 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site