4 ms·
Sure, it's a new filesystem; it's bound to have bugs. However, one pain point I've identified is that the existing tools often have no idea of how to deal with
by saagarjha 9y ago
Sure, it's a new filesystem; it's bound to have bugs. However, one pain point I've identified is that the existing tools often have no idea of how to deal with APFS. I'm currently typing this from a Mac with an APFS drive that is almost certainly experiencing filesystem corruption–I have folders that suddenly lose track of their contents and become impossible to delete; however, existing tools such as fsck, diskutil, etc. can't do anything to fix the issue, because their idea of how APFS works is woefully inadequate.
- pram 9y agoThere is a fsck_apfs, I’m pretty sure that’s what the repair button in the disk util runs.
- Exuma 9y ago`fsck_apfs -n -l -x /dev/rdisk1s1`
- saagarjha 9y agoYes: # diskutil verifyVolume /dev/disk0s2 Started file system verification on disk2s1 macOS Verifying file system Volume was successfully unmounted Performing fsck_apfs -n -x /dev/rdisk2s1 Checking volume Checking the container superblock Checking the EFI jumpstart record Checking the space manager Checking the object map Checking the APFS volume superblock Checking the object map error: btn: invalid key (210, 16) Object map is invalid The volume /dev/rdisk2s1 could not be verified completely File system check exit code is 8 Restoring the original state found as mounted Error: -69845: File system verify or repair failed Underlying error: 8: Exec format error
- jaaames 9y agoYep, I had an APFS volume that I couldn't even health check. I was pretty sure it was filesystem corruption as it'd hang and shut off randomly then come back up without issues, same as when the SSD died the first time. Also am r APFS time machine volume would never finish encrypting, even after being plugged in for days.
- madeofpalk 9y agoWhy would you assume that's file system corruption?
- djsumdog 9y agoThat could be hardware failure. I've had one SSD fail, back around 2013, and the often just lock up without warning. They'll work for 30 min ~ 1 hour and just stop and freeze.
- djsumdog 9y ago> Sure, it's a new filesystem; it's bound to have bugs. It's literally one of the most critical components of an operating system. Bugs in the filesystem or disk utilities are not small things. They have the potential to be disastrous.