Re: [PATCH v7 0/7] fat (exportfs): support stale_rw and nostale_ro mount option.

2013-03-03 Thread Namjae Jeon
2013/3/2, OGAWA Hirofumi :
> Namjae Jeon  writes:
>
>> 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.
>
> Looks like users can start to test this.
>
> Acked-by: OGAWA Hirofumi 
>
> Thanks.
Okay, Thanks OGAWA.
I will start to work write support on fat exportfs.

> --
> OGAWA Hirofumi 
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v7 0/7] fat (exportfs): support stale_rw and nostale_ro mount option.

2013-03-03 Thread Namjae Jeon
2013/3/2, OGAWA Hirofumi hirof...@mail.parknet.co.jp:
 Namjae Jeon linkinj...@gmail.com writes:

 From: Namjae Jeon namjae.j...@samsung.com

 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.

 Looks like users can start to test this.

 Acked-by: OGAWA Hirofumi hirof...@mail.parknet.co.jp

 Thanks.
Okay, Thanks OGAWA.
I will start to work write support on fat exportfs.

 --
 OGAWA Hirofumi hirof...@mail.parknet.co.jp

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v7 0/7] fat (exportfs): support stale_rw and nostale_ro mount option.

2013-03-02 Thread OGAWA Hirofumi
Namjae Jeon  writes:

> 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.

Looks like users can start to test this.

Acked-by: OGAWA Hirofumi 

Thanks.
-- 
OGAWA Hirofumi 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v7 0/7] fat (exportfs): support stale_rw and nostale_ro mount option.

2013-03-02 Thread OGAWA Hirofumi
Namjae Jeon linkinj...@gmail.com writes:

 From: Namjae Jeon namjae.j...@samsung.com

 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.

Looks like users can start to test this.

Acked-by: OGAWA Hirofumi hirof...@mail.parknet.co.jp

Thanks.
-- 
OGAWA Hirofumi hirof...@mail.parknet.co.jp
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v7 0/7] fat (exportfs): support stale_rw and nostale_ro mount option.

2013-03-01 Thread Namjae Jeon
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
v7:
Assign i_pos = MSDOS_ROOT_INO in fat_read_root() and drop check in fat 
_getattr().
Remove __packed attribute from struct fat_fid.
Make code in fat_encode_fh() more readable.

v6:
Dummy inode approach to eliminate custom function fat_traverse_cluster().

v5:
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
fat_lock_build_inode().

v4: 

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

v3:
Dropped busy-list approach and made the filesystem read only when
rebuilding evicted inodes, by providing stale_rw and nostale_ro mount options
 
v2:
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.

v1:
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
---
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v7 0/7] fat (exportfs): support stale_rw and nostale_ro mount option.

2013-03-01 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com

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
v7:
Assign i_pos = MSDOS_ROOT_INO in fat_read_root() and drop check in fat 
_getattr().
Remove __packed attribute from struct fat_fid.
Make code in fat_encode_fh() more readable.

v6:
Dummy inode approach to eliminate custom function fat_traverse_cluster().

v5:
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
fat_lock_build_inode().

v4: 

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

v3:
Dropped busy-list approach and made the filesystem read only when
rebuilding evicted inodes, by providing stale_rw and nostale_ro mount options
 
v2:
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.

v1:
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
---
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/