summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/lvm-functions.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2009-07-15 23:57:54 +0000
committerAlasdair Kergon <agk@redhat.com>2009-07-15 23:57:54 +0000
commitd614646157d51b6a396519b73ec99e112e6948de (patch)
tree65107ed1ba99a464fd3b3ad314ae0ddc7e7336e7 /daemons/clvmd/lvm-functions.c
parentb8f47d5f69ca666623ac83e0aea986f582a3a0ae (diff)
downloadlvm2-d614646157d51b6a396519b73ec99e112e6948de.tar.gz
lvm2-d614646157d51b6a396519b73ec99e112e6948de.tar.xz
lvm2-d614646157d51b6a396519b73ec99e112e6948de.zip
Store any errno and error messages issued while processing each command.
(Enabled by default while we test it, but in due course we'll only store the error messages when we need to.)
Diffstat (limited to 'daemons/clvmd/lvm-functions.c')
-rw-r--r--daemons/clvmd/lvm-functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c
index d559b3a1..1be07813 100644
--- a/daemons/clvmd/lvm-functions.c
+++ b/daemons/clvmd/lvm-functions.c
@@ -714,7 +714,7 @@ static void *get_initial_state()
return NULL;
}
-static void lvm2_log_fn(int level, const char *file, int line,
+static void lvm2_log_fn(int level, const char *file, int line, int dm_errno,
const char *message)
{
@@ -723,7 +723,7 @@ static void lvm2_log_fn(int level, const char *file, int line,
We need to NULL the function ptr otherwise it will just call
back into here! */
init_log_fn(NULL);
- print_log(level, file, line, "%s", message);
+ print_log(level, file, line, dm_errno, "%s", message);
init_log_fn(lvm2_log_fn);
/*