From: Kern Sibbald Date: Mon, 22 Nov 2004 09:25:19 +0000 (+0000) Subject: Update doc and authentication error message X-Git-Tag: Release-7.0.0~9071 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f1d69d0fe26e8fa5feab5691f35b77a31c990900;p=bacula%2Fbacula Update doc and authentication error message git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1716 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/fix_postgresql_tables b/bacula/patches/fix_postgresql_tables new file mode 100755 index 0000000000..4d835df68e --- /dev/null +++ b/bacula/patches/fix_postgresql_tables @@ -0,0 +1,31 @@ +#!/bin/sh +# +# Shell script to fix PostgreSQL tables in version 8 +# +echo " " +echo "This script will fix a Bacula PostgreSQL database version 8" +echo "Depending on the size of your database," +echo "this script may take several minutes to run." +echo " " +# +# Set the following to the path to psql. +bindir=****EDIT-ME to be the path to psql**** + +if $bindir/psql $* -f - <stored: %s", sd->msg); @@ -139,8 +141,10 @@ int authenticate_file_daemon(JCR *jcr) if (!get_auth || !auth) { stop_bsock_timer(tid); Dmsg0(50, _("Director and File daemon passwords or names not the same.\n")); - Jmsg(jcr, M_FATAL, 0, _("Director and File daemon passwords or names not the same.\n" - "Please see http://www.bacula.org/html-manual/faq.html#AuthorizationErrors for help.\n")); + Jmsg(jcr, M_FATAL, 0, + _("Director and File daemon passwords or names not the same or\n" + "you have exceeded the Maximum Concurrent Jobs on the FD.\n" + "Please see http://www.bacula.org/html-manual/faq.html#AuthorizationErrors for help.\n")); return 0; } Dmsg1(116, ">filed: %s", fd->msg); diff --git a/bacula/src/stored/autochanger.c b/bacula/src/stored/autochanger.c index b9ef352b31..4c4aa2f90b 100644 --- a/bacula/src/stored/autochanger.c +++ b/bacula/src/stored/autochanger.c @@ -52,10 +52,11 @@ int autoload_device(DCR *dcr, int writing, BSOCK *dir) { JCR *jcr = dcr->jcr; DEVICE *dev = dcr->dev; - int slot = dcr->VolCatInfo.Slot; + int slot; int drive = jcr->device->drive_index; int rtn_stat = -1; /* error status */ + slot = dcr->VolCatInfo.InChanger ? dcr->VolCatInfo.Slot : 0; /* * Handle autoloaders here. If we cannot autoload it, we * will return FALSE to ask the sysop. @@ -65,7 +66,7 @@ int autoload_device(DCR *dcr, int writing, BSOCK *dir) return 0; /* For user, bail out right now */ } if (dir_find_next_appendable_volume(dcr)) { - slot = dcr->VolCatInfo.Slot; + slot = dcr->VolCatInfo.InChanger ? dcr->VolCatInfo.Slot : 0; } else { slot = 0; }