]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fix bug when restoring with a wrong mediatype
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 19 Jun 2008 09:44:37 +0000 (09:44 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 19 Jun 2008 09:44:37 +0000 (09:44 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7168 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/acquire.c
bacula/technotes-2.5

index 9823d4bb2c36ddbee23440b7eb5257bc7098e7de..eaa09aceadff9ea8102b8d043888dccecee85f61 100644 (file)
@@ -331,6 +331,8 @@ get_out:
     */
    if (dev->is_blocked()) {
       dev->dunblock(DEV_LOCKED);
+   } else {
+      dev->dunlock();               /* dunblock() unlock the device too */
    }
    Dmsg1(950, "jcr->dcr=%p\n", jcr->dcr);
    return ok;
index 5c5b884c2ef0ea93719ca8820bc42bbb54c78618..e812355fd937055a7e481df3954f40d331c74c0b 100644 (file)
@@ -25,6 +25,8 @@ vtape driver
 
 
 General:
+19Jun08
+ebl  Fix a bug when restoring with a wrong mediatype.
 18Jun08
 kes  Eliminate ints from conf files and structures to avoid
      word alignment problems