[RFC PATCH 0/2] Improve simple directory offset wrap behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chuck Lever <chuck.lever@xxxxxxxxxx>

This series attempts to narrow some gaps in the current tmpfs
directory offset mechanism, based on misbehaviors reported by Yu
Kuai <yukuai3@xxxxxxxxxx> and Yang Erkun <yangerkun@xxxxxxxxxx>.

It does not fully close the window on bad behavior, as noted in
the patch description of 2/2. Perhaps discussion and review can
identify improvements that further clean up the corner cases.

The new mechanism attempts to re-use existing fields in struct
dentry rather than adding new fields, and is meant to be back
ported to LTS once it is merged upstream.

The patches currently pass xfstests, in particular generic/736.
The series has been pushed to:

https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/log/?h=nfsd-testing

Chuck Lever (2):
  libfs: Return ENOSPC when the directory offset range is exhausted
  libfs: Improve behavior when directory offset values wrap

 fs/libfs.c | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)

-- 
2.47.0





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux