/*
Bacula® - The Network Backup Solution
- Copyright (C) 2001-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2001-2010 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
case EOT_LABEL:
return "EOT_LABEL";
break;
+ case SOB_LABEL:
+ return "SOB_LABEL";
+ break;
+ case EOB_LABEL:
+ return "EOB_LABEL";
+ break;
default:
sprintf(buf, _("unknown: %d"), fi);
return buf;
return true;
}
+uint64_t get_record_address(DEV_RECORD *rec)
+{
+ return ((uint64_t)rec->File)<<32 | rec->Block;
+}
/*
* Read a Record from the block
rec->state = 0;
if (block->dev->is_tape()) {
rec->state |= REC_ISTAPE;
- rec->Block = block->BlockNumber;
- rec->File = ((DEVICE *)block->dev)->file;
- } else {
- rec->Block = ((DEVICE *)block->dev)->EndBlock;
- rec->File = ((DEVICE *)block->dev)->EndFile;
- }
-
+ }
+ rec->Block = ((DEVICE *)block->dev)->EndBlock;
+ rec->File = ((DEVICE *)block->dev)->EndFile;
/*
* Get the header. There is always a full header,