From: Zdenek Kabelac Date: Mon, 27 Nov 2017 15:52:38 +0000 (+0100) Subject: cleanup: remove debug code X-Git-Tag: v2_02_177~79 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=a42c3a0e90d712652890696fefca51380969d595;p=lvm2.git cleanup: remove debug code --- diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 381083b54..e7653a20d 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -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)) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 9f199120e..56620907a 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -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