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

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/13/2010 10:25 AM, Peter Jones wrote:
> From: NEC <mfuruta@xxxxxxxxxx>
> 
> 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.

- -- 
Brian C. Lane <bcl@xxxxxxxxxx>
Red Hat / Port Orchard, WA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBTDyrDhF+jBaO/jp/AQJYXQgAmYxD6KDdUO/qMf3/I/h2ssNPgOz7dNQl
I5LdO0C6e0+YsV+b8zfdjqTim7tFTqXW9MmbzLbNwCdQUR63xK+eZqRq93WdA/o6
OMKn1iVX8wuwFO8DUqtipH475PFtuy1nMBo+E3rm30+yI/2DISy/VcOQJjdXckbo
WvI9pAqwSPYabK3a08+7T8T0JEYWn5ytd9EZRLg2/TVpC+sFZYGyDLqTQ1lcthTz
nT/P1iYipGImw1qlBWL3DFlzah+pklIY8NBIYfseUXKcPpdoHvyfsOkWOR5p34t+
YKCUcdOaUtt6Lr23weCQZpX8IAS7lPE/Ls4QBLLrP9nJWNbOBcMk5g==
=EeOP
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux