(Thanks to Ken for pointing this out, via Michael Tsai.) And all those child subdirectories must also have this flag set. When set for a directory, that inode tracks the size of all its children. In each inode, there are j_inode_flags which include INODE_MAINTAIN_DIR_STATS. But it doesn’t seem that is always up to date. “The total size, in bytes, of all the files stored in this directory and all of this directoryʼs descendants.” But there are some tantalising clues.įirst, each directory information record has a data structure j_dir_stats_val_t, which contains a numerical value for total_size, which is described as: I turned then to the latest and much fuller APFS documentation, where there is no mention of Fast Directory Sizing at all. And don’t be mislead by performance on a complete volume, which is quite a different question. A few minutes later, the result was instant, and couldn’t have been thoroughly recalculated. The first time that I used Get Info on /Applications, it took several minutes to generate its size. This is made more complex by the fact that Finder seems to cache folder sizes. The answer, for major higher-level folders at least, seems to be no. I set out to see if Mojave 10.14.3, now running the third release of APFS and maturing well, could return folder sizes more quickly. This seemed ideal for many folders, including ~/Documents as cited, and /Applications too, so the question is whether it has been implemented yet. The first paragraph there was full of promise, but by the third, doubt had set in. At least that was in the original brief documentation which Apple teased us with. Surely there must be a better way?ĪPFS promised one: Fast Directory Sizing. If you happened to choose a large high-level folder such as Applications, you might have some time to wait before your Mac can tell you its size. It’s been another of those long-standing issues in macOS, and Mac OS before it: select a folder and Get Info.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |