/[smeserver]/cdrom.image/updates/fsset.py
ViewVC logotype

Diff of /cdrom.image/updates/fsset.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by slords, Mon Aug 1 05:02:21 2005 UTC Revision 1.5 by slords, Mon Aug 1 05:34:53 2005 UTC
# Line 1958  class RAIDDevice(Device): Line 1958  class RAIDDevice(Device):
1958              if self.spares > 0:              if self.spares > 0:
1959                  args.append("--spare-devices=%s" %(self.spares,),)                  args.append("--spare-devices=%s" %(self.spares,),)
1960                            
1961              if self.numDisks == 1:              if self.numDisks == 1 and self.level == 1:
1962                  args.append("--raid-devices=2")                  args.append("--raid-devices=2")
1963              else:              else:
1964                  args.append("--raid-devices=%s" %(self.numDisks,),)                  args.append("--raid-devices=%s" %(self.numDisks,),)
1965    
1966              args.extend(map(devify, self.members))              args.extend(map(devify, self.members))
1967    
1968              if self.numDisks == 1:              if self.numDisks == 1 and self.level == 1:
1969                  args.append("missing")                  args.append("missing")
1970    
1971              log("going to run: %s" %(args,))              log("going to run: %s" %(args,))


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed