From: Eric Bollengier Date: Thu, 19 Jun 2008 09:44:37 +0000 (+0000) Subject: ebl Fix bug when restoring with a wrong mediatype X-Git-Tag: Release-3.0.0~1284 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52bfb8a300be34796bf7da420f11244ce4b4a9b9;p=bacula%2Fbacula ebl Fix bug when restoring with a wrong mediatype git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7168 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index 9823d4bb2c..eaa09acead 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -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; diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 5c5b884c2e..e812355fd9 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -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