Package pyanaconda :: Package storage :: Module partitioning :: Class VGChunk
[hide private]
[frames] | no frames]

Class VGChunk

source code

object --+    
         |    
     Chunk --+
             |
            VGChunk

A free region in an LVM VG from which LVs will be allocated

Instance Methods [hide private]
 
__init__(self, vg, requests=None)
Create a VGChunk instance.
source code
 
addRequest(self, req)
Add a Request to this chunk.
source code
 
lengthToSize(self, length) source code
 
sizeToLength(self, size) source code
 
sortRequests(self) source code
 
growRequests(self)
Calculate growth amounts for requests in this chunk.
source code

Inherited from Chunk: __repr__, __str__, done, growth, hasGrowable, maxGrowth, remaining, trimOverGrownRequest

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, vg, requests=None)
(Constructor)

source code 
Create a VGChunk instance.

Arguments:

    vg -- an LVMVolumeGroupDevice within which this chunk resides


Keyword Arguments:

    requests -- list of Request instances allocated from this chunk

Overrides: object.__init__

addRequest(self, req)

source code 

Add a Request to this chunk.

Overrides: Chunk.addRequest

lengthToSize(self, length)

source code 
Overrides: Chunk.lengthToSize

sizeToLength(self, size)

source code 
Overrides: Chunk.sizeToLength

sortRequests(self)

source code 
Overrides: Chunk.sortRequests

growRequests(self)

source code 

Calculate growth amounts for requests in this chunk.

Overrides: Chunk.growRequests
(inherited documentation)