From 4b3d71212fb07c945acebb074820a63e970504e5 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 29 Mar 2017 21:27:11 +0100 Subject: [PATCH] libdm: use log_sys_error if dmfilemapd exec fails Use log_sys_error rather than log_error if execvp() fails: /mnt/redhat/xdoio.13752.XIORQ: Created new group with 2 region(s) as group ID 0. # execvp() failed. vs: /var/lib/libvirt/images/rhel7-vm1.qcow2: Created new group with 884 region(s) as group ID 0. dmfilemapd: execvp failed: No such file or directory --- libdm/libdm-stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index 3e2983dfc..290097f94 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -5032,7 +5032,7 @@ int dm_stats_start_filemapd(int fd, uint64_t group_id, const char *path, } execvp(args[0], args); - log_error("execvp() failed."); + log_sys_error("execvp", args[0]); if (!foreground) _exit(127); return 0;