]> sourceware.org Git - lvm2.git/commit - tools/lvresize.c
Fix extent rounding for striped segments.
authorMilan Broz <mbroz@redhat.com>
Thu, 9 Jun 2011 19:34:49 +0000 (19:34 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 9 Jun 2011 19:34:49 +0000 (19:34 +0000)
commit851b1a960609ec97a9680dcb8315757ad8c62ab3
treec65a18379fcd4a0120919bfa28f7b074123a3a6b
parent96e7ca3c785c23f299555159ffa0819301805411
Fix extent rounding for striped segments.

We should never remove more extents than requested by user,
so round up to next stripe boundary during lvreduce.

Also this fixes round to zero sized LV bug:

# lvcreate -i2 -I 64k -l10 -n lvs vg_test
# lvreduce -f -l1 vg_test/lvs
  Rounding size (1 extents) down to stripe boundary size for segment (0 extents)
  WARNING: Reducing active logical volume to 0
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
  Reducing logical volume lvs to 0
  Failed to suspend lvs
WHATS_NEW
test/t-lvextend-percent-extents.sh
tools/lvresize.c
This page took 0.031573 seconds and 5 git commands to generate.