Thomas-Tsai / partclone

Partclone provides utilities to backup a partition smartly and it is designed for higher compatibility of the file system by using existing library.
GNU General Public License v2.0
328 stars 108 forks source link

Possible endian issue #144

Open CyberLeo opened 4 years ago

CyberLeo commented 4 years ago

I have discovered an issue with endianness in the generated image file.

I've built version 0.3.12 on PPC64 (big-endian) and I noticed that the checksums and header information in the generated image file appears to be byte-swapped compared to that from an Intel system. The stored images are thus not portable from one arch to another. Within a given arch, however, the software functions perfectly.

Invalid header checksum [0x9FB6F40D != 0x0DF4B69F]

I can provide example images upon request.

Thomas-Tsai commented 4 years ago

sorry, currently only little-endian is supported. Actually, I have no idea abot add little-endian and it's not easy for us to add support in the feature.