Dr-Emann / applesauce

Transparent compression for Apple File System Compression (AFSC)
GNU General Public License v3.0
19 stars 0 forks source link

Compression file size limit #70

Closed tumdum closed 5 months ago

tumdum commented 5 months ago

Is the compression file size limit:

https://github.com/Dr-Emann/applesauce/blob/bb7c86cb80c4ccdc796c5f5dbaf83bb25b57f584/crates/applesauce/src/info.rs#L129-L133

something required by the apfs api/design? Or is only a limitation of the current implementation of applesauce and could be removed in future?

Dr-Emann commented 5 months ago

It's a limitation on apple's side: https://github.com/RJVB/afsctool/issues/17#issuecomment-1296522656

The format itself is limited to 4 GiB of compressed data, but apple's implementation leads to kernel panics on compressed files which are over 4 GiB of data before compression.

tumdum commented 5 months ago

Thanks for a quick answer! :)