LVM2 ./WHATS_NEW tools/lvchange.c tools/vgchange.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: snitzer at sourceware.org 2010-10-26 01:37:59
Modified files:
. : WHATS_NEW
tools : lvchange.c vgchange.c
Log message:
Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange.
Simultaneous -a and --refresh is not valid.
poll+monitor are valid together with or without -ay* (but not with -an*)
No longer print polling results summary if no LVs in the VG were polled.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1777&r2=1.1778
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvchange.c.diff?cvsroot=lvm2&r1=1.125&r2=1.126
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgchange.c.diff?cvsroot=lvm2&r1=1.114&r2=1.115
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.76 =================================== + Fix vgchange to process -a, --refresh, --monitor and --poll like lvchange. Add lvm2app functions to query any pv, vg, or lv property / report field. Version 2.02.75 - 25th October 2010
tools/lvchange.c +5 -1
@@ -715,7 +715,7 @@int lvchange (struct cmd_context *cmd,int argc,char **argv) { -int update =/* options other than -a, --refresh or --monitor */ +int update =/* options other than -a, --refresh, --monitor or --poll */ arg_count (cmd, contiguous_ARG) ||arg_count (cmd, permission_ARG) ||arg_count (cmd, readahead_ARG) ||arg_count (cmd, persistent_ARG) || arg_count(cmd, addtag_ARG) || arg_count(cmd, deltag_ARG) ||
@@ -732,6 +732,10 @@return EINVALID_CMD_LINE ; } +if (arg_count (cmd, available_ARG) &&arg_count (cmd, refresh_ARG)) { +log_error ("Only one of -a and --refresh permitted." ); +return EINVALID_CMD_LINE ; + }if ((arg_count (cmd, ignorelockingfailure_ARG) ||arg_count (cmd, sysinit_ARG)) && update) {
tools/vgchange.c +38 -9
81 lines not on this page · raw message