X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fdevice.c;h=1f4084d64d7e3084ca3b6ebca6bc25ee0b368558;hb=55593b396948f86a7a05827573755ef47f531faa;hp=f06b5cd189ddae472414cb48fa8cfa4823ac576c;hpb=87466d9a71f09a71db034482e6e1834ffe2c0262;p=bacula%2Fbacula diff --git a/bacula/src/stored/device.c b/bacula/src/stored/device.c index f06b5cd189..1f4084d64d 100644 --- a/bacula/src/stored/device.c +++ b/bacula/src/stored/device.c @@ -108,7 +108,7 @@ bool fixup_device_block_write_error(DCR *dcr, int retries) block_device(dev, BST_DOING_ACQUIRE); /* Continue unlocked, but leave BLOCKED */ - dev->dunlock(); + dev->Unlock(); bstrncpy(PrevVolName, dev->getVolCatName(), sizeof(PrevVolName)); bstrncpy(dev->VolHdr.PrevVolumeName, PrevVolName, sizeof(dev->VolHdr.PrevVolumeName)); @@ -127,11 +127,11 @@ bool fixup_device_block_write_error(DCR *dcr, int retries) if (!dcr->mount_next_write_volume()) { free_block(label_blk); dcr->block = block; - dev->dlock(); + dev->Lock(); goto bail_out; } Dmsg2(050, "must_unload=%d dev=%s\n", dev->must_unload(), dev->print_name()); - dev->dlock(); /* lock again */ + dev->Lock(); /* lock again */ dev->VolCatInfo.VolCatJobs++; /* increment number of jobs on vol */ dir_update_volume_info(dcr, false, false); /* send Volume info to Director */ @@ -279,7 +279,7 @@ bool first_open_device(DCR *dcr) return false; } - dev->r_dlock(); + dev->rLock(); /* Defer opening files */ if (!dev->is_tape()) { @@ -302,7 +302,7 @@ bool first_open_device(DCR *dcr) Dmsg1(129, "open dev %s OK\n", dev->print_name()); bail_out: - dev->dunlock(); + dev->Unlock(); return ok; }