overlay: getdents: support lseek

Refs: #1421
Change-Id: Ife7ab1b50159a5897552ff695bb001ada27ec934
This commit is contained in:
Masamichi Takagi
2019-11-13 15:51:20 +09:00
parent 7fc4272b89
commit 3c256e1a6c
5 changed files with 667 additions and 75 deletions

13
test/issues/1421/README Normal file
View File

@ -0,0 +1,13 @@
============
What to test
============
(1) lseek value after a getdents matches the d_off of the last entry
received.
(2) lseek using d_off and then getdents gets the proper entry.
(3) lseek using d_off and then getdents with (d_reclen -1) returns EINVAL.
===========
How to test
===========
(1) make test
(2) Check the result manually.