[lvm-devel] [PATCH] Change lvextend to round up for stripped volumes

Alasdair G Kergon agk at redhat.com
Tue Jul 7 22:17:54 UTC 2009


On Wed, Jul 01, 2009 at 10:45:35PM +0200, Iustin Pop wrote:
> Currently lvresize, when growing stripped volumes, rounds down if the
> extents delta doesn't match exactly the full stripe size. This is
> counterintuitive (we're requesting growth by X amount, and instead we
> could get less than X, even though the operation succeded), and also
> doesn't match the current behaviour in lvcreate (rounds up) and lvextend
> for non-stripped volumes (which also rounds up).
 
The code is shared between lvextend and lvreduce, and accepts relative
as well as absolute sizes, so the logic is not simple.

The intent was for it to be cautious (consider a filesystem present
requiring the precise size specified) by rounding up the amount of
change when extending and rounding down the amount of change when
reducing.

Alasdair




More information about the lvm-devel mailing list