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

Class DiskChunk

source code

object --+    
         |    
     Chunk --+
             |
            DiskChunk

A free region on disk from which partitions will be allocated

Instance Methods [hide private]
 
__init__(self, geometry, requests=None)
Create a Chunk instance.
source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
addRequest(self, req)
Add a Request to this chunk.
source code
 
maxGrowth(self, req) source code
 
lengthToSize(self, length) source code
 
sizeToLength(self, size) source code
 
sortRequests(self) source code

Inherited from Chunk: done, growRequests, growth, hasGrowable, 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, geometry, requests=None)
(Constructor)

source code 
Create a Chunk instance.

Arguments:

    geometry -- parted.Geometry instance describing the free space


Keyword Arguments:

    requests -- list of Request instances allocated from this chunk


Note: We will limit partition growth based on disklabel
limitations for partition end sector, so a 10TB disk with an
msdos disklabel will be treated like a 2TB disk.

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

addRequest(self, req)

source code 

Add a Request to this chunk.

Overrides: Chunk.addRequest

maxGrowth(self, req)

source code 
Overrides: Chunk.maxGrowth

lengthToSize(self, length)

source code 
Overrides: Chunk.lengthToSize

sizeToLength(self, size)

source code 
Overrides: Chunk.sizeToLength

sortRequests(self)

source code 
Overrides: Chunk.sortRequests