#
5a9d65ab |
|
02-Aug-2018 |
Christopher R. Johnson <crjohns@google.com> |
[fs] Create LazyDir, which is populated dynamically PseudoDir implements a relatively static directory consisting of entries backed by ordered trees. A LazyDir, by contrast, is not backed by any storage at all. Each operation on a LazyDir refreshes the view of the directory. LazyDir is meant as a base class for directories with rapidly changing contents, and derived classes implement GetContents and GetFile callback methods to expose files (or further directories) in the directory. Future work will consist of a caching mechanism to improve benchmark performance, particularly on deeply nested LazyDirs. TEST=zircon$ runtests -t fs-vnode-test ZX-2447: #done Change-Id: I2c3465f67fcd9b99441912554862b37b290d84e3
|