good to see you managed to fix the libparted issues!
Am 16.10.2016 um 02:53 schrieb John Paul Adrian Glaubitz:
> On 10/15/2016 03:11 PM, John Paul Adrian Glaubitz wrote:
>> I then tried the image on Aranym but to my disappointment, the kernel did
>> not recognize the partition table, so there is still something wrong with
>> the patch as-is.
> Ah, it works after enabling byte-swapping in ARAnyM :).
Did you write the table on the host and then had to byte swap to get it
read in ARAnyM?
Just checked - Atari byte order disk image files of IDE disks don't need
byte swapping. Host native byte order ones do, that suggests your
partition table is in host native order. To get it to work in ARAnyM out
of the box, and more importantly on real hardware the partition table
would need to be written to the disk image with byte swapping.
Note that SCSI disks don't need byte swapping so if you want to support
both targets, libparted would need a byte swap option ...
> Alright, will clean this up, add tests and then get it merged!