File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,9 @@ pub trait AsyncFileSystem: FileSystem {
618
618
/// the file system did not return a `Handle` from `opendir` then the contents of `handle` are
619
619
/// undefined.
620
620
///
621
- /// `size` indicates the maximum number of bytes that should be returned by this method.
621
+ /// `size` indicates the maximum number of bytes that should be returned by this method,
622
+ /// but can be ignored in practice. Instead, entries are returned by calling the
623
+ /// `add_entry` function until it returns zero (indicating that the buffer is full).
622
624
///
623
625
/// If `offset` is non-zero then it corresponds to one of the `offset` values from a `DirEntry`
624
626
/// that was previously returned by a call to `readdir` for the same handle. In this case the
@@ -659,7 +661,9 @@ pub trait AsyncFileSystem: FileSystem {
659
661
/// the file system did not return a `Handle` from `opendir` then the contents of `handle` are
660
662
/// undefined.
661
663
///
662
- /// `size` indicates the maximum number of bytes that should be returned by this method.
664
+ /// `size` indicates the maximum number of bytes that should be returned by this method,
665
+ /// but can be ignored in practice. Instead, entries are returned by calling the
666
+ /// `add_entry` function until it returns zero (indicating that the buffer is full).
663
667
///
664
668
/// Unlike `readdir`, the lookup count for `Inode`s associated with the returned directory
665
669
/// entries **IS** affected by this method (since it returns an `Entry` for each `DirEntry`).
Original file line number Diff line number Diff line change @@ -634,7 +634,9 @@ pub trait FileSystem {
634
634
/// the file system did not return a `Handle` from `opendir` then the contents of `handle` are
635
635
/// undefined.
636
636
///
637
- /// `size` indicates the maximum number of bytes that should be returned by this method.
637
+ /// `size` indicates the maximum number of bytes that should be returned by this method,
638
+ /// but can be ignored in practice. Instead, entries are returned by calling the
639
+ /// `add_entry` function until it returns zero (indicating that the buffer is full).
638
640
///
639
641
/// If `offset` is non-zero then it corresponds to one of the `offset` values from a `DirEntry`
640
642
/// that was previously returned by a call to `readdir` for the same handle. In this case the
@@ -675,7 +677,10 @@ pub trait FileSystem {
675
677
/// the file system did not return a `Handle` from `opendir` then the contents of `handle` are
676
678
/// undefined.
677
679
///
678
- /// `size` indicates the maximum number of bytes that should be returned by this method.
680
+ /// `size` indicates the maximum number of bytes that should be returned by this method,
681
+ /// but can be ignored in practice. Instead, entries are returned by calling the
682
+ /// `add_entry` function until it returns zero (indicating that the buffer is full).
683
+ ///
679
684
///
680
685
/// Unlike `readdir`, the lookup count for `Inode`s associated with the returned directory
681
686
/// entries **IS** affected by this method (since it returns an `Entry` for each `DirEntry`).
You can’t perform that action at this time.
0 commit comments