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

libdm: better debug message

Print reason for failing ioctl if thin pool message fails.
This commit is contained in:
Zdenek Kabelac 2015-06-04 08:45:22 +02:00
parent ac6b355978
commit 9a06ae7b35
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.99 -
================================
Enhance error message when thin-pool message fails.
Version 1.02.98 - 12th June 2015
================================

View File

@ -1506,11 +1506,13 @@ static int _thin_pool_node_message(struct dm_tree_node *dnode, struct thin_messa
if (!dm_task_set_message(dmt, buf))
goto_out;
/* Internal functionality of dm_task */
/* Internal functionality of dm_task */
dmt->expected_errno = tm->expected_errno;
if (!dm_task_run(dmt))
goto_out;
if (!dm_task_run(dmt)) {
log_error("Failed to process thin pool message \"%s\".", buf);
goto out;
}
r = 1;
out: