From: Kern Sibbald Date: Tue, 12 May 2020 16:57:39 +0000 (+0200) Subject: BEE Backport bacula/src/stored/autochanger.c X-Git-Tag: Release-11.3.2~1651 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b6078e27dd072929c3a844de1e8f259a3551278;p=thirdparty%2Fbacula.git BEE Backport bacula/src/stored/autochanger.c This commit is the result of the squash of the following main commits: Author: Kern Sibbald Date: Thu Jan 19 14:01:30 2012 +0100 Start adding BEEF, pull files from Branch-5.2 Author: Kern Sibbald Date: Wed Nov 23 11:32:27 2011 +0100 Add new SD plugin code + shared storage plugin --- diff --git a/bacula/src/stored/autochanger.c b/bacula/src/stored/autochanger.c index efc972b65d..51f2990544 100644 --- a/bacula/src/stored/autochanger.c +++ b/bacula/src/stored/autochanger.c @@ -21,6 +21,7 @@ * Routines for handling the autochanger. * * Written by Kern Sibbald, August MMII + * */ #include "bacula.h" /* pull in global headers */ @@ -51,7 +52,7 @@ bool init_autochangers() foreach_alist(device, changer->device) { /* * If the device does not have a changer name or changer command - * defined, use the one from the Autochanger resource + * defined, used the one from the Autochanger resource */ if (!device->changer_name && changer->changer_name) { device->changer_name = bstrdup(changer->changer_name); @@ -59,6 +60,9 @@ bool init_autochangers() if (!device->changer_command && changer->changer_command) { device->changer_command = bstrdup(changer->changer_command); } + if (!device->lock_command && changer->lock_command) { + device->lock_command = bstrdup(changer->lock_command); + } if (!device->changer_name) { Jmsg(NULL, M_ERROR, 0, _("No Changer Name given for device %s. Cannot continue.\n"), @@ -152,7 +156,7 @@ int autoload_device(DCR *dcr, bool writing, BSOCK *dir) } else if (!dcr->device->changer_command) { /* Suppress info when polling */ if (!dev->poll) { - Jmsg(jcr, M_INFO, 0, _("No \"Changer Command\" for %s. Manual load of Volume may be requird.\n"), + Jmsg(jcr, M_INFO, 0, _("No \"Changer Command\" for %s. Manual load of Volume may be required.\n"), dev->print_name()); } rtn_stat = 0;