mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
Switch from an FnMut for adding entries to an iterator-like approach. We can't use the Iterator trait directly because the DirEntry struct has a generic lifetime parameter and generic associated types are not currently supported by the language. Also provide an automatic implementation of readdirplus so that file systems don't have to deal with some of its fiddly details. Move the directory entry enumeration code into a separate re-usable struct as we will need it for the casefold support in the next change. BUG=b:162388795 TEST=vm.Virtiofs Change-Id: I40c92468a4852f1e302c2e67877b7189268e9c9b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2403420 Reviewed-by: Stephen Barber <smbarber@chromium.org> Tested-by: Chirantan Ekbote <chirantan@chromium.org> Commit-Queue: Chirantan Ekbote <chirantan@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |