From 711f7fc681a7408183e77817cf832cb7426512be Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 17 Jan 2003 20:16:23 +0000 Subject: [PATCH] Activation commands now return success in test mode. --- lib/activate/activate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 3ac2653ec..53675bb6c 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -319,7 +319,7 @@ int lv_suspend_if_active(struct cmd_context *cmd, const char *lvid_s) if (test_mode()) { _skip("Suspending '%s'.", lv->name); - return 0; + return 1; } if (!lv_info(lv, &info)) { @@ -346,7 +346,7 @@ int lv_resume_if_active(struct cmd_context *cmd, const char *lvid_s) if (test_mode()) { _skip("Resuming '%s'.", lv->name); - return 0; + return 1; } if (!lv_info(lv, &info)) { @@ -373,7 +373,7 @@ int lv_deactivate(struct cmd_context *cmd, const char *lvid_s) if (test_mode()) { _skip("Deactivating '%s'.", lv->name); - return 0; + return 1; } if (!lv_info(lv, &info)) { @@ -400,7 +400,7 @@ int lv_activate(struct cmd_context *cmd, const char *lvid_s) if (test_mode()) { _skip("Activating '%s'.", lv->name); - return 0; + return 1; } if (!lv_info(lv, &info)) { -- 2.43.5