]> 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>
Sun, 21 Mar 2021 02:00:33 +0000 (02:00 +0000)
commitdc559c846d052ccb1996adcac2e6aba1675b4627
tree69ffea5202403d299456aecfac120cec1a3d1ef5
parent12349e667cede9bf3a38d618a25525ccf1b5f9bc
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