Closed turan18 closed 9 months ago
needs a test
since this is generic filesystem behavior, you can add a test under posixtest
needs a test
Added some tests under posixtest. PTAL: @hanwen
Hey, could you take another look when you the chance? @hanwen
i'll merge it today. sorry for the delay
The man page for
Lseek
says that the filesystem should return anENXIO
when the offset is greater than the file size on eitherSEEK_DATA
orSEEK_HOLE
or if the offset is set to the end of the file withSEEK_DATA
(where there is an implicit hole). Adding these checks to the currentLseek
implementation.Resolves: #487