mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
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.
This commit is contained in:
parent
a944480b9b
commit
f1f42ab732
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user