mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
LVM2 mirror repository
https://sourceware.org/lvm2/
e858ac1546
Change the behavior of availability change. With this patch the lvgchange returns success when VG is properly changed. It skips non-virtual origins from being changes when only 'vg' is specified as lvchange -a parameter. Before this change we had this: $> lvs -a LV VG Attr LSize Pool Origin lvol0 mvg owi-a-s- 128.00k lvol1 mvg owi-a-s- 128.00k lvol2 mvg swi-a-s- 1.25m lvol0 lvol3 mvg swi-a-s- 1.25m lvol1 $> lvchange -an mvg ; echo $? Can't change snapshot logical volume "lvol2". Can't change snapshot logical volume "lvol3". 5 $> lvs -a LV VG Attr LSize Pool Origin lvol0 mvg owi---s- 128.00k lvol1 mvg owi---s- 128.00k lvol2 mvg swi---s- 1.25m lvol0 lvol3 mvg swi---s- 1.25m lvol1 $> lvchange -ay mvg ; echo $? Can't change snapshot logical volume "lvol2". Can't change snapshot logical volume "lvol3". 5 $> lvs LV VG Attr LSize Pool Origin lvol0 mvg owi-a-s- 128.00k lvol1 mvg owi-a-s- 128.00k lvol2 mvg swi-a-s- 1.25m lvol0 lvol3 mvg swi-a-s- 1.25m lvol1 After commit: $> lvs -a LV VG Attr LSize Pool Origin lvol0 mvg owi-a-s- 128.00k lvol1 mvg owi-a-s- 128.00k lvol2 mvg swi-a-s- 1.25m lvol0 lvol3 mvg swi-a-s- 1.25m lvol1 $> lvchange -an mvg ; echo $? 0 $> lvs -a LV VG Attr LSize Pool Origin lvol0 mvg owi---s- 128.00k lvol1 mvg owi---s- 128.00k lvol2 mvg swi---s- 1.25m lvol0 lvol3 mvg swi---s- 1.25m lvol1 $> lvchange -ay mvg ; echo $? 0 $> lvs -a LV VG Attr LSize Pool Origin lvol0 mvg owi-a-s- 128.00k lvol1 mvg owi-a-s- 128.00k lvol2 mvg swi-a-s- 1.25m lvol0 lvol3 mvg swi-a-s- 1.25m lvol1 |
||
---|---|---|
autoconf | ||
daemons | ||
doc | ||
include | ||
lib | ||
libdm | ||
liblvm | ||
man | ||
old-tests | ||
po | ||
report-generators | ||
reports | ||
scripts | ||
test | ||
tools | ||
udev | ||
unit-tests | ||
aclocal.m4 | ||
configure | ||
configure.in | ||
COPYING | ||
COPYING.LIB | ||
INSTALL | ||
make.tmpl.in | ||
Makefile.in | ||
README | ||
VERSION | ||
VERSION_DM | ||
WHATS_NEW | ||
WHATS_NEW_DM |
This tree contains the LVM2 and device-mapper tools and libraries. For more information about LVM2 read the changelog in the WHATS_NEW file. Installation instructions are in INSTALL. There is no warranty - see COPYING and COPYING.LIB. Tarballs are available from: ftp://sources.redhat.com/pub/lvm2/ To access the CVS tree use: cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 login CVS password: cvs cvs -d :pserver:cvs@sources.redhat.com:/cvs/lvm2 co LVM2 Mailing list for general discussion related to LVM2: linux-lvm@redhat.com Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm Mailing list for LVM2 development, patches and commits: lvm-devel@redhat.com Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm Mailing list for device-mapper development, including kernel patches and multipath-tools: dm-devel@redhat.com Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel