From ae0ac24fdda50dae391aa2d24c415eabac39e22f Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 25 Oct 2010 10:40:13 +0000 Subject: [PATCH] Don't take write lock in vgchange --refresh, --poll or --monitor. --- WHATS_NEW | 3 ++- tools/vgchange.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index a09acf189..05acc3bd4 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,6 +1,7 @@ Version 2.02.75 - ===================================== - Skip dm devices in scan if they contain only error targets. + Don't take write lock in vgchange --refresh, --poll or --monitor. + Skip dm devices in scan if they contain only error targets or are empty. Fix strict-aliasing compile warning in partition table scanning. Add an option to automatically extend snapshots through dmeventd. Remove dependency on libm, floor() is replaced with integer algorithm. diff --git a/tools/vgchange.c b/tools/vgchange.c index b16fc54d9..92f32dbbc 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -687,7 +687,10 @@ int vgchange(struct cmd_context *cmd, int argc, char **argv) } return process_each_vg(cmd, argc, argv, - (arg_count(cmd, available_ARG)) ? + (arg_count(cmd, available_ARG) || + arg_count(cmd, refresh_ARG) || + arg_count(cmd, monitor_ARG) || + arg_count(cmd, poll_ARG)) ? 0 : READ_FOR_UPDATE, NULL, &vgchange_single); -- 2.43.5