LVM2 ./WHATS_NEW tools/lvchange.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2009-08-13 14:27:33
Modified files:
. : WHATS_NEW
tools : lvchange.c
Log message:
Make lvchange --refresh only take a read lock on volume group.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1238&r2=1.1239
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvchange.c.diff?cvsroot=lvm2&r1=1.108&r2=1.109
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.52 - ================================= + Make lvchange --refresh only take a read lock on volume group. Fix bug where non-blocking file locks could be granted in error. Make lvm2app pv_t, lv_t, vg_t handle definitions consistent with lvm_t. Fix vgextend error path - if ORPHAN lock fails, unlock / release vg (2.02.49).
tools/lvchange.c +2 -3
@@ -690,12 +690,11 @@return EINVALID_CMD_LINE ; } -int avail_only = +int avail_only =/* i.e. only one of -a or --refresh is given */ !(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) || -arg_count (cmd, refresh_ARG) ||arg_count (cmd, alloc_ARG) || -arg_count (cmd, resync_ARG)); +arg_count (cmd, resync_ARG) ||arg_count (cmd, alloc_ARG));if (arg_count (cmd, ignorelockingfailure_ARG) && !avail_only) {log_error ("Only -a permitted with --ignorelockingfailure" );
Quoted 3 lines · mornfall at sourceware.org
Make lvchange --refresh only take a read lock on volume group.
+ Make lvchange --refresh only take a read lock on volume group.
Declare the other changes in WHATS_NEW too?
Patch now does this for --monitor too? --refresh is now permitted with --ignorelockingfailure?
tools/lvchange.c line 693
Quoted 2 lines
tools/lvchange.c +1
-1- int avail_only = + int avail_only = /* i.e. only one of -a or --refresh is given */
--monitor?
tools/lvchange.c line 700
Quoted 9 lines
tools/lvchange.c +1
-2!(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) || -arg_count (cmd, refresh_ARG) ||arg_count (cmd, alloc_ARG) || -arg_count (cmd, resync_ARG)); +arg_count (cmd, resync_ARG) ||arg_count (cmd, alloc_ARG));if (arg_count (cmd, ignorelockingfailure_ARG) && !avail_only) {log_error ("Only -a permitted with --ignorelockingfailure" );
Alasdair