ByteSwapping in Busybox

In busybox in root/e2fsprogs/blkid/probe.hon line 296, this shows up:

Capture

 

Byteswapping! I thought the best thing to do would be to test based off endian-ness and if it would need to be byteswapped, do so through code rather than inline.

Capture

Capture

After the above code is properly tested, I can replace the code in the probe.h with this and create a patch. Busybox might work on Arm64 by this point, depending on how much it dislikes the memory barrier code!

Leave a comment