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:
parent
744b75f881
commit
8f794f2095
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user