Currently fcoeplumb is reading the config files, which it should not. This patch makes it so the debug option is passed to it from fcoemon.
Signed-off-by: Robert Love <[email protected]> --- fcoemon.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/fcoemon.c b/fcoemon.c index 6e38049..a019f07 100644 --- a/fcoemon.c +++ b/fcoemon.c @@ -1806,10 +1806,14 @@ fcm_dcbd_setup(struct fcm_fcoe *ff, enum fcoeadm_action action) if (fcm_use_syslog) syslog = "--syslog"; + if (fcm_debug) + debug = "--debug"; + execlp(fcm_dcbd_cmd, fcm_dcbd_cmd, ff->ff_name, - op, qos_arg, qos, syslog, (char *)NULL); + op, qos_arg, qos, syslog, debug, (char *)NULL); FCM_LOG_ERR(errno, "exec '%s' failed", fcm_dcbd_cmd); + exit(1); } } _______________________________________________ devel mailing list [email protected] http://www.open-fcoe.org/mailman/listinfo/devel
