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

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



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.


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