[lvm-devel] master - writecache: skip zeroing in test mode
David Teigland
teigland at sourceware.org
Fri Feb 7 16:33:57 UTC 2020
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8f794f2095583d41393ee9c697f470015b29f064
Commit: 8f794f2095583d41393ee9c697f470015b29f064
Parent: 744b75f88158156f7d8ffe6c2bc5af9856e63258
Author: David Teigland <teigland at redhat.com>
AuthorDate: Fri Feb 7 10:32:10 2020 -0600
Committer: David Teigland <teigland at redhat.com>
CommitterDate: Fri Feb 7 10:32:10 2020 -0600
writecache: skip zeroing in test mode
---
tools/lvconvert.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index a1fb8c1..cd9a3e8 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -5351,6 +5351,9 @@ static int _writecache_zero(struct cmd_context *cmd, struct logical_volume *lv)
};
int ret;
+ if (test_mode())
+ return 1;
+
if (!activate_lv(cmd, lv)) {
log_error("Failed to activate LV %s for zeroing.", display_lvname(lv));
return 0;
More information about the lvm-devel
mailing list