1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

pvmove: skip polling later in test mode

This commit is contained in:
Ondrej Kozina 2015-09-02 16:54:22 +02:00
parent 6e4f2da9b3
commit a9d954cb3c

View File

@ -817,9 +817,6 @@ int pvmove_poll(struct cmd_context *cmd, const char *pv_name,
int r; int r;
struct poll_operation_id *id = NULL; struct poll_operation_id *id = NULL;
if (test_mode())
return ECMD_PROCESSED;
if (uuid) { if (uuid) {
id = _create_id(cmd, pv_name, vg_name, lv_name, uuid); id = _create_id(cmd, pv_name, vg_name, lv_name, uuid);
if (!id) { if (!id) {
@ -828,7 +825,10 @@ int pvmove_poll(struct cmd_context *cmd, const char *pv_name,
} }
} }
r = poll_daemon(cmd, background, PVMOVE, &_pvmove_fns, "Moved", id); if (test_mode())
r = ECMD_PROCESSED;
else
r = poll_daemon(cmd, background, PVMOVE, &_pvmove_fns, "Moved", id);
_destroy_id(cmd, id); _destroy_id(cmd, id);