1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-01 09:47:48 +03:00

Activation commands now return success in test mode.

This commit is contained in:
Alasdair Kergon 2003-01-17 20:16:23 +00:00
parent 07f9ce4b9e
commit 711f7fc681

View File

@ -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)) {