Re: [PATCH 6/6] Remove the multipath name generator, it is no longer used.

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

 



On Wed, 2010-01-20 at 19:03 -0500, Peter Jones wrote:
> With the move to getting mpath setup from /sbin/multipath, we no longer
> need to generate device names.

Ack.

> ---
>  storage/devices.py |   14 --------------
>  1 files changed, 0 insertions(+), 14 deletions(-)
> 
> diff --git a/storage/devices.py b/storage/devices.py
> index c56106f..2b7f6f0 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -2911,20 +2911,6 @@ class DMRaidArrayDevice(DMDevice):
>      def dracutSetupString(self):
>          return "rd_DM_UUID=%s" % self.name
>  
> -
> -class _MultipathDeviceNameGenerator:
> -    def __init__(self):
> -        self.number = 0
> -    def get(self):
> -        ret = self.number
> -        self.number += 1
> -        return ret
> -_multipathDeviceNameGenerator = _MultipathDeviceNameGenerator()
> -
> -def generateMultipathDeviceName():
> -    number = _multipathDeviceNameGenerator.get()
> -    return "mpath%s" % (number, )
> -
>  class MultipathDevice(DMDevice):
>      """ A multipath device """
>      _type = "dm-multipath"


_______________________________________________
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