Package pyanaconda :: Package iw :: Module lvm_dialog_gui :: Class VolumeGroupEditor
[hide private]
[frames] | no frames]

Class VolumeGroupEditor

source code

Instance Methods [hide private]
 
getTempVG(self) source code
 
numAvailableLVSlots(self) source code
 
computeSpaceValues(self) source code
 
getPVWastedRatio(self, newpe)
given a new pe value, return percentage of smallest PV wasted
source code
 
getSmallestPVSize(self)
finds the smallest PV and returns its size in MB
source code
 
reclampLV(self, newpe)
given a new pe value, set logical volume sizes accordingly
source code
 
peChangeCB(self, widget, *args)
handle changes in the Physical Extent option menu
source code
 
prettyFormatPESize(self, val)
Pretty print for PE size in KB
source code
 
createPEOptionMenu(self, default=4096) source code
 
clickCB(self, row, data) source code
 
createAllowedLvmPartitionsList(self) source code
 
updateAllowedLvmPartitionsList(self)
update sizes in pv list
source code
 
getCurrentLogicalVolume(self) source code
 
editLogicalVolume(self, lv, isNew=0) source code
 
editCurrentLogicalVolume(self) source code
 
addLogicalVolumeCB(self, widget) source code
 
editLogicalVolumeCB(self, widget) source code
 
delLogicalVolumeCB(self, widget) source code
 
logvolActivateCb(self, view, path, col) source code
 
getSelectedPhysicalVolumes(self) source code
 
computeVGSize(self, pvlist, curpe) source code
 
updateLogVolStore(self) source code
 
updateVGSpaceLabels(self) source code
 
run(self) source code
 
convertToActions(self) source code
 
destroy(self) source code
 
getLVByName(self, name, vg=None) source code
 
__init__(self, anaconda, intf, parent, vg, isNew=0) source code
Method Details [hide private]

getPVWastedRatio(self, newpe)

source code 

given a new pe value, return percentage of smallest PV wasted

newpe - (int) new value of PE, in KB

reclampLV(self, newpe)

source code 

given a new pe value, set logical volume sizes accordingly

newpe - (int) new value of PE, in MB

peChangeCB(self, widget, *args)

source code 
handle changes in the Physical Extent option menu

widget - menu item which was activated
peOption - the Option menu containing the items. The data value for
           "lastval" is the previous PE value.