summaryrefslogtreecommitdiffstats
path: root/daemons/cmirrord/local.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-06-19 23:28:59 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-06-20 14:48:26 +0200
commit461eb1ac6adbf8e1938bd6e726dd4048c341cb49 (patch)
treee5fb5427040bf0481b8f2a1d8bee5a834379c1d4 /daemons/cmirrord/local.c
parentac8a931889d796cf1e74b7c38ee6fb201ae2963b (diff)
downloadlvm2-461eb1ac6adbf8e1938bd6e726dd4048c341cb49.tar.gz
lvm2-461eb1ac6adbf8e1938bd6e726dd4048c341cb49.tar.xz
lvm2-461eb1ac6adbf8e1938bd6e726dd4048c341cb49.zip
cmirrord: add missing checks for kernel_send
Log errors if kernel_send fails.
Diffstat (limited to 'daemons/cmirrord/local.c')
-rw-r--r--daemons/cmirrord/local.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemons/cmirrord/local.c b/daemons/cmirrord/local.c
index 50711a1a..500f6dce 100644
--- a/daemons/cmirrord/local.c
+++ b/daemons/cmirrord/local.c
@@ -279,7 +279,9 @@ static int do_local_work(void *data __attribute__((unused)))
if (r) {
u_rq->data_size = 0;
u_rq->error = r;
- kernel_send(u_rq);
+ if (kernel_send(u_rq))
+ LOG_ERROR("Failed to respond to kernel [%s]",
+ RQ_TYPE(u_rq->request_type));
}
break;