1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

writecache: skip zeroing in test mode

This commit is contained in:
David Teigland 2020-02-07 10:32:10 -06:00
parent 744b75f881
commit 8f794f2095

View File

@ -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;