]>
sourceware.org Git - lvm2.git/commit
Allow to activate snapshot
Add extra code to active and deactivate related
snapshots and origin when user specifies snapshot
logical volume as lvchange parameter.
Before patch:
$> lvs -a
LV VG Attr LSize Pool Origin Snap% Move Log Copy% Convert
lvol0 mvg owi-a-s- 1.00k
lvol1 mvg swi-a-s- 16.00k lvol0 0.00
lvol2 mvg swi-a-s- 16.00k lvol0 0.00
$> lvchange -an mvg/lvol2; echo $?
Can't change snapshot logical volume "lvol2".
5
After patch:
$> lvchange -an mvg/lvol2
Change of snapshot lvol2 will also change its origin lvol0 and 1 other
snapshot(s). Proceed? [y/n]: n
Logical volume lvol2 not changed.
$> lvchange -y -an mvg/lvol2; echo $?
0
$> lvs -a
LV VG Attr LSize Pool Origin Snap% Move Log Copy% Convert
lvol0 mvg owi---s- 1.00k
lvol1 mvg swi---s- 16.00k lvol0
lvol2 mvg swi---s- 16.00k lvol0
This page took 0.027332 seconds and 5 git commands to generate.