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

Re: [PATCH] Read cciss devices correctly from 'multipath -d' output (#559507)



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

On 05/24/2010 06:58 PM, David Cantrell wrote:
> Make sure we get "cciss/c0d0" rather than "cciss/c" from the
> parseMultipathOutput() function.
> ---
>  storage/devicelibs/mpath.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/storage/devicelibs/mpath.py b/storage/devicelibs/mpath.py
> index ffec28c..c412562 100644
> --- a/storage/devicelibs/mpath.py
> +++ b/storage/devicelibs/mpath.py
> @@ -39,7 +39,7 @@ def parseMultipathOutput(output):
>      devices = []
>  
>      policy = re.compile('^[|+` -]+policy')
> -    device = re.compile('^[|+` -]+[0-9]+:[0-9]+:[0-9]+:[0-9]+ ([a-zA-Z!/]+)')
> +    device = re.compile('^[|+` -]+[0-9]+:[0-9]+:[0-9]+:[0-9]+ ([a-zA-Z0-9!/]+)')
>  
>      lines = output.split('\n')
>      for line in lines:

Ack

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

iQEVAwUBS/tgVhF+jBaO/jp/AQJ2Ewf/WEB3iPvOWwRBmQ0oPS5xo+6zc/XWs6P4
vVugGWeHIha6R4WxbfTIMssYXE6KSopnacvUcH5tiUCNxRHNk3cuVi5l4+IwJaoE
bEuBW/HlHyGiJ0MUCfZwsYQhYuhLEEXy4wDHHGJbiSZe4XAxFsGQacunoI038A3w
9MAKUQSHfGdyJb9AsQrg5UNVuxqTQW5UUr77yEsJrsTFH8MfWv3tiBDyQB2K5W2/
+afD7An5XV8dDBZfH7kJQubuYG3z0iiIddUWyil/OKN9ZGAIszb2Iks+aDZ43KeG
46CZoTCAXHmxiPFZ7g1Tr5dL53Vz6n1qbh1OvCTo6Vz0jKepu0LZVQ==
=w5eU
-----END PGP SIGNATURE-----


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