Re: [PATCH 03/10] fdisk: API: add fdisk_label_change

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

 




On 07/24/2012 11:56 AM, Petr Uzel wrote:
> On Tue, Jul 24, 2012 at 11:47:53AM +0200, Bernhard Voelker wrote:
>>
>>
>> On 07/22/2012 07:05 PM, Davidlohr Bueso wrote:
>>> --- a/fdisks/fdisksunlabel.c
>>> +++ b/fdisks/fdisksunlabel.c
>>> @@ -161,6 +161,7 @@ void create_sunlabel(struct fdisk_context *cxt)
>>>  
>>>  	init();
>>>  	fdisk_mbr_zeroize(cxt);
>>> +	fdisk_label_change(cxt, "sun");
>>>  
>>

>>
>> Shouldn't we use something else than hardcoded "sun"|"dos"|"sgi"|...
>> strings here? 
> 
> What's the problem with these strings? I think these are well
> recognized with clear meaning. What alternative do you propose?

Sorry, I should've proposed this already in my first mail:

-	fdisk_label_change(cxt, "sun");
+	fdisk_label_change(cxt, sun_label.name);

It's already defined ;-)

Have a nice day,
Berny

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux