1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvconvert: skip polling in test mode

This commit is contained in:
Ondrej Kozina 2015-09-02 16:53:23 +02:00
parent ab5df4bc5c
commit 6e4f2da9b3

View File

@ -763,6 +763,9 @@ static int _lvconvert_poll_by_id(struct cmd_context *cmd, struct poll_operation_
int is_merging_origin,
int is_merging_origin_thin)
{
if (test_mode())
return ECMD_PROCESSED;
if (is_merging_origin)
return poll_daemon(cmd, background,
(MERGING | (is_merging_origin_thin ? THIN_VOLUME : SNAPSHOT)),