]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: set d_off during VOP_READDIR
authorAlan Somers <asomers@FreeBSD.org>
Fri, 12 Feb 2021 01:01:10 +0000 (18:01 -0700)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 8 Apr 2021 21:32:59 +0000 (21:32 +0000)
commite02c4d8d9bc7c8a0ba4477c31cbac5b67283ea06
tree11991ac72c3273e1a43bbc96c02fac30ee55b5ff
parent5061d5a0cfaf68a6891db82f6bd26ad3e72e87b1
fusefs: set d_off during VOP_READDIR

This allows d_off to be used with lseek to position the file so that
getdirentries(2) will return the next entry.  It is not used by
readdir(3).

PR: 253411
Reported by: John Millikin <jmillikin@gmail.com>
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D28605

(cherry picked from commit 71befc35061b3c9d8cc07e34c5dce622c848fcdb)
sys/fs/fuse/fuse_internal.c
tests/sys/fs/fusefs/Makefile
tests/sys/fs/fusefs/readdir.cc