Re: How is the APFS block checksum calculated?
Re: How is the APFS block checksum calculated?
- Subject: Re: How is the APFS block checksum calculated?
- From: Thomas Tempelmann <email@hidden>
- Date: Sun, 30 Apr 2017 13:47:32 +0200
Nevermind - someone figured it out:
https://blog.cugu.eu/post/apfs/#checksum
My code was missing the extra (optional) "check bytes" after the sums calculation.
It now also contains versions for fletcher-16 and -32, as well as an optimized form that avoids the use of the modulo operator (though, with modern desktop CPUs, I wonder if that even still makes a difference or if the MOD instruction is just as fast as an AND and a SHIFT instruction together).
(As Quinn says) Enjoy,
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden