FYI, you also asked about APFS on this thread and I've moved you answer to that question on this thread. Is it bug or ATTR_VOL_SPACEUSED is unsupported on macOS 11? I don't know exactly why it was done, but I believe it was an intentional choice while the team was sorting out how APFS should present itself to the VFS system. ATTR_VOL_SPACEUSED is actually calculated in the VFS layer (you can see the code here if you're curious) and I suspect that at the time vs.f_bused wasn't giving a value that matched well with the expectation of the rest of the system. Disabling ATTR_VOL_SPACEUSED was the easiest way to prevent that from causing broader problems. That leads to here: Are there any other way to get space which is used on an APFS volume? (C++) So, the basic answer is what's the described in Checking Volume Storage Capacity. The more complicated answer starts with What are you actually trying to do?. The big issue here isn't simply that APFS is more complicated (which it definitely is), it's that part
Topic:
App & System Services
SubTopic:
Core OS
Tags: