[PATCH] make sure that we calculate a vg size that is less than the total parition size.

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

 



Hi list:

Here is my second wack at solving this issue (468944).  It is VERY ugly.  but I felt corned and see no other way out.  The bug ocurrs when the pv size (partition size) is a multiple of the pe size.  This means that when you clamp the pv size in the vg size calculation there will be no difference between the unclamped and the clamped value.  This means that we are calculating the vg available size as the sum of the total sizes of all the pvs (partitions) that compose the vg, which is not accurate.  So to make sure that the vg size is less than the total sum of the pv sizes (partition sizes) I take away 1 pe.  Its ugly I know...

I tested a couple of lvm movearounds and eveything seemed ok.

review appreciated.

Regards.

_______________________________________________
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