Skip to content

Commit

Permalink
label: remove bad update
Browse files Browse the repository at this point in the history
This does not belong here.  This causes big problems.  The device
might have changed volumes etc. and the values are not related to
anything anymore.  The dcr gets updated after every write so this
is unneccessary as well.
  • Loading branch information
sebsura authored and BareosBot committed Aug 1, 2023
1 parent 35c99ec commit c058e89
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/src/stored/label.cc
Expand Up @@ -621,13 +621,6 @@ bool WriteSessionLabel(DeviceControlRecord* dcr, int label)
SetStartVolPosition(dcr);
break;
case EOS_LABEL:
if (dev->IsTape()) {
dcr->EndBlock = dev->EndBlock;
dcr->EndFile = dev->EndFile;
} else {
dcr->EndBlock = (uint32_t)dev->file_addr;
dcr->EndFile = (uint32_t)(dev->file_addr >> 32);
}
break;
default:
Jmsg1(jcr, M_ABORT, 0, _("Bad Volume session label = %d\n"), label);
Expand Down

0 comments on commit c058e89

Please sign in to comment.