openSUSE/open-build-service — pull request #51 by ondrej-k (2012-05-11 18:35:33+00:00)
Title: [dist] obssotragesetup should take PE size into account.

Depending on VG at hand, we can run out of disk space creating LVs.
This is due to using MiB and lvcreate rounding to align with PE size.

Few compromises:
- kept using MiBs rather then extents around as to minimize amount of change. Hence just made sure results calculated won't bit us.
- This also means the operation used looks somewhat ugly requiring us to convert forth and back as we're using MiBs, but extends can be smaller then 1024KiB.

Code-reviewed by R. Schiele.