Re:MacOS Finder Shows Zero-Size Folders
by brigade on Monday February 25, 2019 @02:26AM
(#19243731)
Especially with APFS adding fast directory sizing, it's ultimately the responsibility of each individual filesystem driver to calculate directory size. And the driver is also the only code that can tell whether the last returned size is still correct. Which for some filesystems (SMB) it should be impossible to know without traversing the entire subdirectory tree again.
[ Parent
| on HN ]
Re:MacOS Finder Shows Zero-Size Folders
by apple4ever on Tuesday March 05, 2019 @01:19PM
(#19312745)
Except Apple doesn't use fast directory sizing...
Re:MacOS Finder Shows Zero-Size Folders
by iceninenines on Monday February 25, 2019 @03:26AM
(#19244001)
This is where fast and reliable caching strategies, and lazy, parallel enumeration come in. I would almost want the .DS_Store to include a summary of a tree's metadata and update what's in view by watching watchable filesystems in order to avoid as much full remote tree walking as possible. Shared remote filesystems without a differential/OT push metadata notification API reduce clients to glorified polling. :(