[master] Clean up partitioning and rework partition growing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 partitioning.py |  931 +++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 657 insertions(+), 274 deletions(-)

Lots of cleanups to partitioning code in general. The functional changes
are how we allocate growable partitions and the addition of per-disk
partition alignment.

Partition growing is completely reimplemented. A map of free space regions
is collected prior to partition allocation. During partition allocation we
choose which disk each growable partition will be allocated from, as well
as which free space region on that disk. Partitions are grown as a group
within each free space region. Growth rates are determined by the relative
base sizes of the partitions within a free space region.

All new partitions are aligned for the device from which they are
allocated. For now, getDiskAlignment returns an alignment with offset 0
and grainSize of 1 sector, which is sort of a no-op alignment. Once
pyparted exports functions/methods to determine the minimal alignment of
devices we can replace this no-op alignment with the real deal.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux