/[smeserver]/cdrom.image/sme9/updates/storage/devices.py
ViewVC logotype

Diff of /cdrom.image/sme9/updates/storage/devices.py

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

Revision 1.1 by charliebrady, Tue Jul 30 21:01:52 2013 UTC Revision 1.3 by charliebrady, Mon Nov 18 18:07:33 2013 UTC
# Line 1879  class LVMVolumeGroupDevice(DMDevice): Line 1879  class LVMVolumeGroupDevice(DMDevice):
1879    
1880          # TODO: validate peSize if given          # TODO: validate peSize if given
1881          if not self.peSize:          if not self.peSize:
1882              self.peSize = 4.0   # MB              self.peSize = 32.0   # MB
1883    
1884          if not self.exists:          if not self.exists:
1885              self.pvCount = len(self.parents)              self.pvCount = len(self.parents)
# Line 3139  class MDRaidArrayDevice(StorageDevice): Line 3139  class MDRaidArrayDevice(StorageDevice):
3139    
3140              disks = [disk.path for disk in self.devices]              disks = [disk.path for disk in self.devices]
3141              spares = len(self.devices) - self.memberDevices              spares = len(self.devices) - self.memberDevices
3142    
3143                # allow creation of degraded arrays
3144                if len(disks) == 1:
3145                    disks.append("missing")
3146    
3147              mdraid.mdcreate(self.path,              mdraid.mdcreate(self.path,
3148                              self.level,                              self.level,
3149                              disks,                              disks,


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