A SOFTWARE DEVELOPER has revealed that the firm's APFS proprietary file system is suffering from a disk image vulnerability that could lead to data loss.
APFS, which simply stands for Apple File System, replaced Apple's HFS+ file system in 2016 with the aim of providing improved efficiency and stronger encryption to users of its macOS and iOS operating systems.
Turns out APFS isn't all that efficient, as Carbon Copy Cloner creator and software developer Mike Bombich revealed in a blog post that he has uncovered a data writing flaw in the system through his regular work with "sparse" disk images.
A sparse disk image is a type of disk image file used on macOS that grows in size as the user adds data to the image, taking up only as much disk space as stored in it. macOS mounts it on the desktop and treats as if it was a physically attached drive with a classic disk volume structure. These sparse disk images are often used in backup and disk cloning operations.
However, Bombich has found two problems related to the found bug. The first is that the free space on the APFS-formatted sparse disk image doesn't update when the free space on the underlying physical host disk is reduced. The second is related to the lack of error reports when write requests fail, which results in data being written into a "void".
"I noticed that an APFS-formatted sparsebundle disk image volume showed ample free space, despite that the underlying disk was completely full," he explained in the post.
"Curious, I copied a video file to the disk image volume to see what would happen. The whole file copied without error! I opened the file, verified that the video played back start to finish, checksummed the file - as far as I could tell, the file was intact and whole on the disk image."
When Bombich unmounted and remounted the disk image, however, he found that the video was corrupted.
"If you've ever lost data, you know the kick-in-the-gut feeling that would have ensued," he added. "Thankfully, I was just running some tests and the file that disappeared was just test data."
Bombich has reported the bug to Apple, which will need to issue operating system updates to eradicate it. In the meantime, Bombich has put the development of his company's APFS products on hold. µ
It never worked properly, so why fix it
Memo reveals firm's latest plan to pacify angry Mac owners
Handset revealed in all its glory ahead of 7 May launch
Better than some service station flowers, that's for sure