Re: [PATCH pyblock]: Do not try to find and activate partitions on raid subsets

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

 



looks ok

On Wed, Mar 18, 2009 at 01:31:40PM +0100, Hans de Goede wrote:
> Do not try to find and activate partitions on raid subsets, this fixes
> us finding partitions on the subsets of raid 0 + 1 or 1 + 0 sets.
> ---
>  device.py |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/device.py b/device.py
> index f5ee2dc..039c55a 100644
> --- a/device.py
> +++ b/device.py
> @@ -802,14 +802,14 @@ class RaidSet:
>              elif isinstance(m, RaidSet):
>                  m.scanMemberParts()
>
> -    def activate(self, degradedOk=False, mknod=False):
> +    def activate(self, degradedOk=False, mknod=False, mkparts=True):
>          if self.active:
>              return
>
>          # We put the active members in a list so we can deactivate them later.
>          for member in self.members:
>              if isinstance(member, RaidSet):
> -                member.activate(degradedOk=degradedOk, mknod=mknod)
> +                member.activate(degradedOk=degradedOk, mknod=mknod, mkparts=False)
>                  self._RaidSet__activeMembers.append(member)
>
>          if mknod:
> @@ -821,7 +821,8 @@ class RaidSet:
>              self.mknod = True
>
>          self.removeMemberParts()
> -        self.buildParts()
> +        if mkparts:
> +            self.buildParts()
>          ret = self.partitions
>          return ret
>
> -- 
> 1.6.1.3
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.

_______________________________________________
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