7d33ec3750
The d_off field has been added to the dirent structure recently. Currently filesystems don't support this feature. Support has been added and tested for zfs, ufs, ext2fs, fdescfs, msdosfs and unionfs. A stub implementation is available for cd9660, nandfs, udf and pseudofs but hasn't been tested. Motivation for this feature: our usecase is for a userspace nfs server (nfs-ganesha) with zfs. At the moment we cache direntry offsets by calling lseek once per entry, with this patch we can get the offset directly from getdirentries(2) calls which provides a significant speedup. Submitted by: Jack Halford <jack@gandi.net> Reviewed by: mckusick, pfg, rmacklem (previous versions) Sponsored by: Gandi.net MFC after: 1 week Differential revision: https://reviews.freebsd.org/D17917 |
||
---|---|---|
.. | ||
ext2_acl.c | ||
ext2_acl.h | ||
ext2_alloc.c | ||
ext2_balloc.c | ||
ext2_bmap.c | ||
ext2_csum.c | ||
ext2_dinode.h | ||
ext2_dir.h | ||
ext2_extattr.c | ||
ext2_extattr.h | ||
ext2_extents.c | ||
ext2_extents.h | ||
ext2_extern.h | ||
ext2_hash.c | ||
ext2_htree.c | ||
ext2_inode_cnv.c | ||
ext2_inode.c | ||
ext2_lookup.c | ||
ext2_mount.h | ||
ext2_subr.c | ||
ext2_vfsops.c | ||
ext2_vnops.c | ||
ext2fs.h | ||
fs.h | ||
htree.h | ||
inode.h |