bdev: implement disk resize for lvm/drbd8
authorIustin Pop <iustin@google.com>
Mon, 16 Jun 2008 15:04:01 +0000 (15:04 +0000)
committerIustin Pop <iustin@google.com>
Mon, 16 Jun 2008 15:04:01 +0000 (15:04 +0000)
commitcf03e597b545406ec8143682e1042022f5f82706
tree17e12c1dafa3628a173ee41933245b829375e9d4
parentd930b7a2b24169e3ca964b0c5d9d7d1bbf77c34d
bdev: implement disk resize for lvm/drbd8

This patch implements disk resize at the bdev level for the LVM and
DRBD8 disk types. It is not implemented for DRBD7 and MD since the way
MD works with its underlaying devices makes it harder and this
combination is also deprecated.

The LVM resize operation is tried three times, with different allocation
policies:
  - contiguous first, since this is best for allocation purposes (it
    won't fragment too much the PV)
  - cling, which is supported only by more recent LVM versions, will try
    to place the new extents on the same PV as the rest of the LV
  - and finally normal, which is the default

Reviewed-by: imsnah
lib/bdev.py