[PATCH 2/5] Pass UUID of existing md array to superclass constructor.

David Lehman dlehman at redhat.com
Tue Apr 22 18:36:20 UTC 2014



On 04/22/2014 12:38 PM, Anne Mulhern wrote:
>
>
>
>
> ----- Original Message -----
>> From: "David Lehman" <dlehman at redhat.com>
>> To: anaconda-patches at lists.fedorahosted.org
>> Sent: Tuesday, April 22, 2014 11:26:01 AM
>> Subject: [PATCH 2/5] Pass UUID of existing md array to superclass constructor.
>>
>> ---
>>   blivet/devices.py | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/blivet/devices.py b/blivet/devices.py
>> index 9d876cf..47a0561 100644
>> --- a/blivet/devices.py
>> +++ b/blivet/devices.py
>> @@ -3181,7 +3181,7 @@ class MDRaidArrayDevice(ContainerDevice):
>>           self._memberDevices = 0
>>           self._totalDevices = 0
>>
>> -        super(MDRaidArrayDevice, self).__init__(name, format=format,
>> +        super(MDRaidArrayDevice, self).__init__(name, format=format,
>> uuid=uuid,
>>                                                   exists=exists, size=size,
>>                                                   parents=parents,
>>                                                   sysfsPath=sysfsPath)
>> --
>> 1.9.0
>>
>> _______________________________________________
>> anaconda-patches mailing list
>> anaconda-patches at lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
>>
>
> Are these actual UUIDs such that we can use Python's UUID classes?
> I recall a bug that pointed out that there are two different tools that
> format the UUID in two different ways, so that UUID as string for lookup
> could be a bad idea. I can not for the life of me remember the bug, however.

They are. Some other things, like the device-mapper UUIDs, are not.

>
> - mulhern
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
>


More information about the anaconda-patches mailing list