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

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
This commit is contained in:
Bryn M. Reeves 2017-03-29 21:27:11 +01:00
parent 5994ed9df2
commit 4b3d71212f

View File

@ -5032,7 +5032,7 @@ int dm_stats_start_filemapd(int fd, uint64_t group_id, const char *path,
} }
execvp(args[0], args); execvp(args[0], args);
log_error("execvp() failed."); log_sys_error("execvp", args[0]);
if (!foreground) if (!foreground)
_exit(127); _exit(127);
return 0; return 0;