]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix patches from master
authorKern Sibbald <kern@sibbald.com>
Tue, 25 Dec 2012 16:29:26 +0000 (17:29 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:06 +0000 (14:51 +0200)
bacula/src/stored/mount.c
bacula/src/stored/vol_mgr.c

index dc1f38bc1927d543d64b4b373caf0cdc37b9c2a8..68b5fedd9750b4b76a7331beb08f9aef1779e4c8 100644 (file)
@@ -863,11 +863,11 @@ bool mount_next_read_volume(DCR *dcr)
     * End Of Tape -- mount next Volume (if another specified)
     */
    if (jcr->NumReadVolumes > 1 && jcr->CurReadVolume < jcr->NumReadVolumes) {
-      dev->Lock();
+      dev->dlock();
       dev->close();
       dev->set_read();
       dcr->set_reserved();
-      dev->Unlock();
+      dev->dunlock();
       if (!acquire_device_for_read(dcr)) {
          Jmsg2(jcr, M_FATAL, 0, _("Cannot open Dev=%s, Vol=%s\n"), dev->print_name(),
                dcr->VolumeName);
index a89584d137b1aee409f48045279c6a06925a2c0e..7d12be97cc63e44debee52e3f57841d52b2591c6 100644 (file)
@@ -443,10 +443,9 @@ VOLRES *reserve_volume(DCR *dcr, const char *VolumeName)
             vol->dev = dev;              /* point the Volume at our drive */
             dev->vol = vol;              /* point our drive at the Volume */
          } else {
-            Jmsg8(jcr, M_WARNING, 0, "Need volume for %s from other drive, "
+            Jmsg7(dcr->jcr, M_WARNING, 0, "Need volume from other drive, "
                "but swap not possible. Status: read=%d num_writers=%d "
                "num_reserve=%d swap=%d vol=%s from dev=%s to %s\n", 
-               dcr->is_write_acquire()?"write":"read",
                vol->dev->can_read(), vol->dev->num_writers,
                vol->dev->num_reserved(), vol->is_swapping(),
                VolumeName, vol->dev->print_name(), dev->print_name());