From d222f68a580d9f0b7d68bc21b191c0d26f850e2f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 6 Dec 2012 10:19:38 +0100 Subject: [PATCH] Enhance output of Using Device to include for read/write --- bacula/src/dird/msgchan.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bacula/src/dird/msgchan.c b/bacula/src/dird/msgchan.c index 1e7cfc7038..686f0c7af6 100644 --- a/bacula/src/dird/msgchan.c +++ b/bacula/src/dird/msgchan.c @@ -269,6 +269,9 @@ bool start_storage_daemon_job(JCR *jcr, alist *rstore, alist *wstore, bool send_ } else { ok = false; } + if (ok) { + Jmsg(jcr, M_INFO, 0, _("Using Device \"%s\" to read.\n"), device_name.c_str()); + } } /* Do write side of storage daemon */ @@ -304,6 +307,9 @@ bool start_storage_daemon_job(JCR *jcr, alist *rstore, alist *wstore, bool send_ } else { ok = false; } + if (ok) { + Jmsg(jcr, M_INFO, 0, _("Using Device \"%s\" to write.\n"), device_name.c_str()); + } } if (!ok) { POOL_MEM err_msg; @@ -317,8 +323,6 @@ bool start_storage_daemon_job(JCR *jcr, alist *rstore, alist *wstore, bool send_ " Storage daemon didn't accept Device \"%s\" command.\n"), device_name.c_str()); } - } else { - Jmsg(jcr, M_INFO, 0, _("Using Device \"%s\"\n"), device_name.c_str()); } return ok; } -- 2.39.2