Package pyanaconda :: Package storage :: Module partspec :: Class PartSpec
[hide private]
[frames] | no frames]

Class PartSpec

source code

object --+
         |
        PartSpec

Instance Methods [hide private]
 
__init__(self, mountpoint=None, fstype=None, size=None, maxSize=None, grow=False, btr=False, lv=False, singlePV=False, weight=0, requiredSpace=0, encrypted=False)
Create a new storage specification.
source code
 
__str__(self)
str(x)
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mountpoint=None, fstype=None, size=None, maxSize=None, grow=False, btr=False, lv=False, singlePV=False, weight=0, requiredSpace=0, encrypted=False)
(Constructor)

source code 
Create a new storage specification.  These are used to specify
the default partitioning layout as an object before we have the
storage system up and running.  The attributes are obvious
except for the following:

btr -- Should this be allocated as a btrfs subvolume?  If not,
       it will be allocated as a partition.
lv -- Should this be allocated as a logical volume?  If not,
      it will be allocated as a partition.
singlePV -- Should this logical volume map to a single physical
            volume in the volume group?  Implies lv=True
weight -- An integer that modifies the sort algorithm for partition
          requests.  A larger value means the partition will end up
          closer to the front of the disk.  This is mainly used to
          make sure /boot ends up in front, and any special (PReP,
          appleboot, etc.) partitions end up in front of /boot.
          This value means nothing unless lv and btr are both False.
requiredSpace -- This value is only taken into account if
                 lv=True, and specifies the size in MB that the
                 containing VG must be for this PartSpec to even
                 get used.  The VG's size is calculated before any
                 other LVs are created inside it.  If not enough
                 space exists, this PartSpec will never get turned
                 into an LV.
encrypted -- Should this request be encrypted? For logical volume
             requests, this is satisfied if the PVs are encrypted
             as in the case of encrypted LVM autopart.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)