Skip to contentSkip to conversation

master - cleanup: remove debug code

PATCH Zdenek Kabelac 1 participant 1 message Dec 1, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a42c3a0e90d712652890696fefca51380969d595
Commit:        a42c3a0e90d712652890696fefca51380969d595
Parent:        0e177cc7c90139441530fc065125fa510671e610
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 27 16:52:38 2017 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Dec 1 12:19:09 2017 +0100

cleanup: remove debug code

---
 lib/activate/activate.c    |    7 -------
 lib/activate/dev_manager.c |    2 --
 2 files changed, 0 insertions(+), 9 deletions(-)
lib/activate/activate.c +0 -7
index 381083b..e7653a2 100644
@@ -323,12 +323,6 @@ int lvs_in_vg_opened(const struct volume_group *vg)
 {
 	return 0;
 }
-/******
-int lv_suspend(struct cmd_context *cmd, const char *lvid_s)
-{
-	return 1;
-}
-*******/
 int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s, unsigned origin_only, unsigned exclusive,
 			 const struct logical_volume *lv, const struct logical_volume *lv_pre)
 {
@@ -2369,7 +2363,6 @@ static int _lv_resume(struct cmd_context *cmd, const char *lvid_s,
 		if (error_if_not_active)
 			goto_out;
 
-
 		/* ATM only thin-pool with origin-only suspend does not really suspend anything
 		 * it's used only for message passing to thin-pool */
 		if (laopts->origin_only && lv_is_thin_pool(lv))
lib/activate/dev_manager.c +0 -2
index 9f19912..5662090 100644
@@ -3135,8 +3135,6 @@ static int _tree_action(struct dev_manager *dm, const struct logical_volume *lv,
 		if (!dm_tree_preload_children(root, dlid, DLID_SIZE))
 			goto_out;
 
-		//if (action == PRELOAD) { log_debug("SLEEP"); sleep(7); }
-
 		if ((dm_tree_node_size_changed(root) < 0))
 			dm->flush_required = 1;
 		/* Currently keep the code require flush for any