Commit bb93d85
committed
Fix readdirplus to send available Dirent on error
If there's an error, we can only signal it if we haven't stored any entries
yet - otherwise we'd end up with wrong lookup counts for the entries that
are already in the buffer. So we return what we've collected until that
point.
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>1 parent 38a0d87 commit bb93d85
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
| |||
599 | 600 | | |
600 | 601 | | |
601 | 602 | | |
602 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
603 | 609 | | |
604 | 610 | | |
605 | 611 | | |
| |||
0 commit comments