master - lvconvert: add more checks for lvconvert --type
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=31de670318c9794690601468def392cd7e4eb0fc Commit: 31de670318c9794690601468def392cd7e4eb0fc Parent: 373f95a921223c1e4d36ae975ac685227369cf5b Author: Peter Rajnoha <[email protected]> AuthorDate: Tue Jul 23 17:04:43 2013 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Tue Jul 23 17:13:54 2013 +0200
lvconvert: add more checks for lvconvert --type
The --type mirror requires -m/--mirrrors:
lvconvert --type mirror vg/lvol0
--type mirror requires -m/--mirrors
Run `lvconvert --help' for more information.
The --type raid* is allowed (the checks already existed):
lvconvert --type raid10 vg/lvol0
Converting the segment type for vg/lvol0 from linear to raid10 is not yet supported.
The --type snapshot is a synonym to -s/--snapshot:
lvconvert -s vg/lvol0 vg/lvol1
Logical volume lvol1 converted to snapshot.
lvconvert --type snapshot vg/lvol0 vg/lvol1
Logical volume lvol1 converted to snapshot.
All the other segment types are not supported, e.g.:
lvconvert --type zero vg/lvol0
Conversion using --type zero is not supported. Run `lvconvert --help' for more information.
--- WHATS_NEW | 1 + tools/lvconvert.c | 66 ++++++++++++++++++++++++++++++++++++++++------------- 2 files changed, 51 insertions(+), 16 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Issue an error msg if lvconvert --type used incorrectly with other options. Use LOG_DEBUG/ERR msg severity instead default for lvm2-activation-generator. Support ARG_GROUPABLE with merge_synonym (for --raidwritemostly). Fix segfault when reporting raid_syncaction for older kernels.
tools/lvconvert.c +50 -16
112 lines not on this page · raw message