Konstantin Belousov 1c4ca77890 Add d_off support for multiple filesystems.
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
2018-11-14 14:18:35 +00:00
..
2017-10-31 00:07:04 +00:00
2018-10-25 21:44:17 +00:00
2017-12-27 21:36:37 +00:00
2018-11-12 18:37:31 +00:00
2018-03-29 19:43:29 +00:00
2018-04-27 13:59:24 +00:00
2018-11-04 16:08:59 +00:00
2018-09-19 07:04:15 +00:00
2018-03-21 14:37:04 +00:00
2018-10-12 05:27:58 +00:00
2018-05-18 06:10:16 +00:00
2018-06-27 19:29:15 +00:00
2018-09-19 07:05:31 +00:00
2018-09-20 09:26:10 +00:00
2018-09-19 07:06:20 +00:00
2018-09-20 09:31:27 +00:00
2018-08-21 01:33:25 +00:00
2018-09-22 13:17:30 +00:00
2018-05-23 01:20:31 +00:00
2018-06-17 18:05:27 +00:00
2018-10-22 18:29:12 +00:00
2018-11-12 20:44:22 +00:00