From d736253c379e45267e5887c02e3a49d964103f99 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 18 Mar 2004 11:43:49 +0000 Subject: [PATCH] Fix missing new_dcr call in btape git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1139 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/btape.c | 9 +++++---- bacula/src/stored/butil.c | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index 408d6dd41a..edb6eef3bc 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -302,7 +302,7 @@ static bool open_the_device() return false; } } - Dmsg1(000, "open_dev %s OK\n", dev_name(dev)); + Pmsg1(000, "open_dev %s OK\n", dev_name(dev)); unlock_device(dev); free_block(block); return true; @@ -1043,8 +1043,9 @@ static int autochanger_test() return 1; } - Pmsg0(-1, "\nTo test the autochanger you must have a blank tape in Slot 1.\n" - "I'm going to write on it.\n"); + Pmsg0(-1, "\nAh, I see you have an autochanger configured.\n" + "To test the autochanger you must have a blank tape\n" + " that I can write on in Slot 1.\n"); if (!get_cmd("\nDo you wish to continue with the Autochanger test? (y/n): ")) { return 0; } @@ -1239,7 +1240,7 @@ test_again: if (dev->file != 5) { goto bail_out; } - + Pmsg0(-1, _("\n=== End Forward space files test ===\n\n")); return 1; bail_out: diff --git a/bacula/src/stored/butil.c b/bacula/src/stored/butil.c index 1e1387cf4b..7b936eccf9 100644 --- a/bacula/src/stored/butil.c +++ b/bacula/src/stored/butil.c @@ -100,6 +100,7 @@ DEVICE *setup_to_access_device(JCR *jcr, int read_access) dev = init_dev(NULL, device); jcr->device->dev = dev; + new_dcr(jcr, dev); if (!dev || !first_open_device(dev)) { Jmsg1(jcr, M_FATAL, 0, _("Cannot open %s\n"), jcr->dev_name); return NULL; -- 2.39.5