bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16134: Bug#239816: [PATCH 2/2] libparted: Add support for atari part


From: John Paul Adrian Glaubitz
Subject: bug#16134: Bug#239816: [PATCH 2/2] libparted: Add support for atari partition tables
Date: Fri, 9 Dec 2016 14:05:28 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1

Hi Colin!

On 12/09/2016 01:57 PM, Colin Watson wrote:
> Thanks for this.  I've satisfied myself that it shouldn't cause problems
> on other systems, so I've gone ahead and applied these patches to Debian
> unstable, though I expect I may need to refresh them at some point.

Thanks a lot, this is awesome :). Now I can build d-i images for m68k!

> A few minor comments, although I haven't reviewed the Atari-specific
> details:
> 
> On Sun, Dec 04, 2016 at 05:12:46PM +0100, John Paul Adrian Glaubitz wrote:
>> +static int
>> +atr_part_correct (AtariRawPartition* part, uint32_t hd_size)
>> +{
>> +    uint32_t start, size;
>> +
>> +    start = PED_BE32_TO_CPU (part->start);
>> +    size = PED_BE32_TO_CPU (part->size);
>> +
>> +    return isalnum_l(part->id[0], atr_c_locale)
>> +            && isalnum_l(part->id[1], atr_c_locale)
>> +            && isalnum_l(part->id[2], atr_c_locale)
>> +            && atr_start_size_correct (start, size, hd_size);
>> +}
> 
> I'd be inclined to just hand-roll a C-flavoured isalnum equivalent
> rather than bothering to instantiate a custom locale.

Makes sense. I can try looking into this.

>> @@ -96,6 +97,7 @@ init_disk_types ()
>>      ped_disk_bsd_init ();
>>      ped_disk_amiga_init ();
>>      ped_disk_aix_init ();
>> +    ped_disk_atari_init ();
>>  }
> 
> Aside from dasd, these seem to be mostly reverse-alphabetical except
> that atari is now slightly out of sequence.  Any reason for that?
> (Ditto in done_disk_types.)

No, just an oversight :).

> Also, "git am" whinges about various minor whitespace things, which you
> should correct:
> 
> .git/rebase-apply/patch:710: space before tab in indent.
>                                         disk,
> .git/rebase-apply/patch:711: space before tab in indent.
>                                         PED_BE32_TO_CPU (table.part[i].start),
> .git/rebase-apply/patch:712: space before tab in indent.
>                                         &pnum ) )
> .git/rebase-apply/patch:1460: space before tab in indent.
>                                                 < min_start ) ) {
> .git/rebase-apply/patch:1721: space before tab in indent.
>                                            | PED_PARTITION_EXTENDED))

Thanks for spotting these. Will fix them!

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - address@hidden
`. `'   Freie Universitaet Berlin - address@hidden
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913





reply via email to

[Prev in Thread] Current Thread [Next in Thread]