diff options
Diffstat (limited to 'daemons/lvmpolld/lvmpolld-cmd-utils.c')
-rw-r--r-- | daemons/lvmpolld/lvmpolld-cmd-utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/daemons/lvmpolld/lvmpolld-cmd-utils.c b/daemons/lvmpolld/lvmpolld-cmd-utils.c index 865b47ec9..56751bd56 100644 --- a/daemons/lvmpolld/lvmpolld-cmd-utils.c +++ b/daemons/lvmpolld/lvmpolld-cmd-utils.c @@ -92,6 +92,12 @@ const char **cmdargv_ctr(const struct lvmpolld_lv *pdlv, const char *lvm_binary, if (!add_to_cmd_arr(&cmd_argv, "-An", &i)) goto err; + if (pdlv->devicesfile) { + if (!add_to_cmd_arr(&cmd_argv, "--devicesfile", &i) || + !add_to_cmd_arr(&cmd_argv, pdlv->devicesfile, &i)) + goto err; + } + /* terminating NULL */ if (!add_to_cmd_arr(&cmd_argv, NULL, &i)) goto err; |