From: Zdenek Kabelac Date: Thu, 22 Sep 2011 09:45:24 +0000 (+0000) Subject: Add all exclusive locks to clvmd restart option args X-Git-Tag: v2_02_91~519 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f1f42ab7328380f5cca8103631d3e2922642a338;p=lvm2.git Add all exclusive locks to clvmd restart option args Fix bug when only every even lock has been passed. Warning: currently -E causes clvmd to exit with usage text being printed. --- diff --git a/WHATS_NEW b/WHATS_NEW index e644845e5..a1ee27a0a 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.89 - ================================== + Add all exclusive locks to clvmd restart option args. Always send the whole clvmd packet header in refresh commands. Add missing error checks for some system calls in cmirrord. Add missing log_error() to lvresize command when fsadm tool fails. diff --git a/daemons/clvmd/clvmd-command.c b/daemons/clvmd/clvmd-command.c index 75f136743..c83e2cfdf 100644 --- a/daemons/clvmd/clvmd-command.c +++ b/daemons/clvmd/clvmd-command.c @@ -369,7 +369,6 @@ static int restart_clvmd(void) DEBUGLOG("clvmd restart requested\n"); /* Count exclusively-open LVs */ - hn = NULL; do { hn = get_next_excl_lock(hn, &lv_name); if (lv_name) @@ -403,6 +402,7 @@ static int restart_clvmd(void) */ /* Now add the exclusively-open LVs */ + hn = NULL; do { hn = get_next_excl_lock(hn, &lv_name); if (lv_name) { @@ -414,7 +414,6 @@ static int restart_clvmd(void) goto_out; DEBUGLOG("excl lock: %s\n", lv_name); - hn = get_next_excl_lock(hn, &lv_name); } } while (hn && *lv_name); argv[argc++] = NULL;