[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [PATCH lvconvert 2/11] Don't start polldaemon if conversion failed in early stage



If lvconvert fails in the early stage, we shouldn't invoke
polldaemon.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
If lvconvert_single() has failed, there is no need to poll.

Index: LVM2.work/tools/lvconvert.c
===================================================================
--- LVM2.work.orig/tools/lvconvert.c
+++ LVM2.work/tools/lvconvert.c
@@ -714,7 +714,7 @@ int lvconvert(struct cmd_context * cmd, 
 error:
 	unlock_vg(cmd, lp.vg_name);
 
-	if (lp.wait_daemon)
+	if (ret == ECMD_PROCESSED && lp.wait_daemon)
 		ret = _lvconvert_poll(cmd, lp.lv_name_full,
 				      arg_count(cmd, background_ARG) ? 1U : 0);
 	return ret;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]