Skip to content

Commit

Permalink
bazil.org/fuse: Add HandleReadDirer to read partial sub-dirents
Browse files Browse the repository at this point in the history
This patch introduces an Interface HandleReadDirer, which implements
ReadDir to read partial sub-dirents accroding to request offset and
size.

From now on, readdir could be implemented in two ways:
 * ReaddirAll reads all sub-dirents one time
 * Readdir reads partial sub-dirents and the caller needs to call
   it multple times if more sub-dirents are requested
 * If both are implemented, Readdir is used

Signed-off-by: Sheng Yong <[email protected]>
  • Loading branch information
shyodx committed Oct 18, 2021
1 parent f362b86 commit 54901d4
Showing 1 changed file with 34 additions and 15 deletions.
49 changes: 34 additions & 15 deletions vendor/bazil.org/fuse/fs/serve.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 54901d4

Please sign in to comment.