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

Re: [RHEL6-branch] Use blacklist_exceptions for mpath devices (#612399)



On 07/13/2010 02:06 PM, Brian C. Lane wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 07/13/2010 10:25 AM, Peter Jones wrote:
>> From: NEC <mfuruta redhat com>
>>
>> This makes anaconda generate a blacklist_exceptions section in multipath.conf
>> ---
>>  storage/devicelibs/mpath.py |    8 ++++++++
>>  1 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/storage/devicelibs/mpath.py b/storage/devicelibs/mpath.py
>> index 50cccfd..ae7b257 100644
>> --- a/storage/devicelibs/mpath.py
>> +++ b/storage/devicelibs/mpath.py
>> @@ -232,6 +232,14 @@ blacklist {
>>                  ret += '\t\tvendor %s\n' % device.vendor
>>                  ret += '\t\tproduct %s\n' % device.model
>>                  ret += '\t}\n'
>> +        if self.mpaths:
>> +		ret += '\twwid "*"\n'
>> +		ret += '}\n'
>> +		ret += 'blacklist_exceptions {\n'
>> +		for mpath in self.mpaths:
>> +			for k,v in mpath.config.items():
>> +				if k == 'wwid':
>> +					ret += '\twwid %s\n' % v
>>          ret += '}\n'
>>          ret += 'multipaths {\n'
>>          for mpath in self.mpaths:
> 
> Please convert tabs to spaces.

I've pushed it with this change.

-- 
        Peter

RFC 882 put the dots in .com.

01234567890123456789012345678901234567890123456789012345678901234567890123456789


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