Skip to content

Series short description

Bernd Schubert linux-ext4 linux-fsdevel linux-nfs 1 version In review

Get series with b4
b4 am 20110808153432.1872437.85783.stgit@fsdevel3

Versions newest first

  1. v1 Latest2 of 4 patches 1 replyIn review

2 of 4 patches are in this archive. The cover letter announces 4.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Add new FMODE flags: FMODE_32bithash and FMODE_64bithashinclude/linux/fs.h+5 -00 replies
2/4Return 32/64-bit dir name hash according to usage typefs/ext4/dir.c fs/ext4/ext4.h fs/ext4/hash.c+154 -410 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchBernd Schubert
1/4
2/4Patch-updated-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Series short description

With the ext3/ext4 directory index implementation hashes are used to specify offsets for llseek(). For compatibility with NFSv2 and 32-bit user space on 64-bit systems (kernel space) ext3/ext4 currently only return 32-bit hashes and therefore the probability of hash collisions for larger directories is rather high. As recently reported on the NFS mailing list that theoretical problem also happens on real systems:
http://comments.gmane.org/gmane.linux.nfs/40863

The following series adds two new f_mode flags to tell ext4 to use 32-bit or 64-bit hash values for llseek() calls. These flags can then used by network file systems, such as NFS, to request 32-bit or 64-bit offsets (hashes).

Version 2:
- use f_mode instead of O_* flags and also in a separate patch
- introduce EXT4_HTREE_EOF_32BIT and EXT4_HTREE_EOF_64BIT
- fix SEEK_END in ext4_dir_llseek()
- set f_mode flags in NFS code as early as possible and introduce a new NFSD_MAY_64BIT_COOKIE flag for that

--
Bernd Schubert
Fraunhofer ITWM