Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suuport volumes with the 0x80 incompatible feature
The official newfs_apfs now sets a 0x80 incompatible feature in all volumes by default. The feature is undocumented as far as I know, but after some testing it would seem that its effect is to set a flag in preallocated extents. I can't imagine why such a feature would be incompatible instead of read-only compatible, so there is a chance that I'm missing something important, but for now enable support and let's see if anything breaks. By the way, no real changes are needed here because we don't preallocate extents ourselves, and we put existing preallocated extents through the same CoW as all the others. The only problem remaining is that writes after the end of a file will not flip the "preallocation" flags that may be set in previous blocks, but neither the official fsck nor the driver seem to care about this. I just don't get what this flag is for, which is a little scary of course. Signed-off-by: Ernesto A. Fernández <[email protected]>
- Loading branch information