]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix missing new_dcr call in btape
authorKern Sibbald <kern@sibbald.com>
Thu, 18 Mar 2004 11:43:49 +0000 (11:43 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 18 Mar 2004 11:43:49 +0000 (11:43 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1139 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/btape.c
bacula/src/stored/butil.c

index 408d6dd41a7279b3d2bc9c296d5a1bff3a75f02c..edb6eef3bc4e51af6fd4f42fef81ce79bbc79c5a 100644 (file)
@@ -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:
index 1e1387cf4bd3b2a0594c3cc8fcf7408571bd108c..7b936eccf90f2428bee10293e49aa05513cd9a7a 100644 (file)
@@ -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;