]> sourceware.org Git - lvm2.git/commitdiff
cleanup: remove debug code
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 27 Nov 2017 15:52:38 +0000 (16:52 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 1 Dec 2017 11:19:09 +0000 (12:19 +0100)
lib/activate/activate.c
lib/activate/dev_manager.c

index 381083b547df6cfe680d239b1e0b35cd66c5744c..e7653a20db6b1bdf6f7320eda2b216796a2df6f6 100644 (file)
@@ -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))
index 9f199120ebd4589b6c74e62311ace8be85ae74cc..56620907af2880cd65f26af37fa999823e0c2501 100644 (file)
@@ -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
This page took 0.039384 seconds and 5 git commands to generate.