Hi there,

It looks like the record copying code in bcopy has been broken since forever!

After doing bcopy with two file volumes, the output from bls looks like this:

Volume Record: File:blk=0:64511 SessId=1 SessTime=1195049975 JobId=0 DataLen=170
Begin Job Session Record: File:blk=0:64717 SessId=1 SessTime=1181738048 
JobId=156
   Job=Client1.2007-06-13_13.36.31 Date=13-Jun-2007 13:36:34 Level=F Type=B
End Job Session Record: File:blk=0:322765 SessId=1 SessTime=1181738048 JobId=156
   Date=13-Jun-2007 13:36:34 Level=F Type=B Files=27 Bytes=296,831 Errors=0 
Status=T
End Job Session Record: File:blk=0:362468 SessId=2 SessTime=1181738048 JobId=156
   Date=13-Jun-2007 13:36:34 Level=F Type=B Files=27 Bytes=296,831 Errors=0 
Status=T
End Job Session Record: File:blk=0:598764 SessId=2 SessTime=1181738048 JobId=157
   Date=13-Jun-2007 13:38:08 Level=F Type=B Files=27 Bytes=296,831 Errors=0 
Status=T
End Job Session Record: File:blk=0:598764 SessId=1 SessTime=1187776900 JobId=157
   Date=13-Jun-2007 13:38:08 Level=F Type=B Files=27 Bytes=296,831 Errors=0 
Status=T
End Job Session Record: File:blk=0:598764 SessId=1 SessTime=1187776900 JobId=159
   Date=22-Aug-2007 11:03:39 Level=F Type=B Files=20 Bytes=1,807 Errors=0 
Status=T

The output of bls on the original volume was this:

Volume Record: File:blk=0:64511 SessId=1 SessTime=1181738048 JobId=0 DataLen=193
Begin Job Session Record: File:blk=0:64740 SessId=1 SessTime=1181738048 
JobId=156
   Job=Client1.2007-06-13_13.36.31 Date=13-Jun-2007 13:36:34 Level=F Type=B
End Job Session Record: File:blk=0:322788 SessId=1 SessTime=1181738048 JobId=156
   Date=13-Jun-2007 13:36:34 Level=F Type=B Files=27 Bytes=296,831 Errors=0 
Status=T
Begin Job Session Record: File:blk=0:362491 SessId=2 SessTime=1181738048 
JobId=157
   Job=Client1.2007-06-13_13.38.06 Date=13-Jun-2007 13:38:08 Level=F Type=B
End Job Session Record: File:blk=0:598161 SessId=2 SessTime=1181738048 JobId=157
   Date=13-Jun-2007 13:38:08 Level=F Type=B Files=27 Bytes=296,831 Errors=0 
Status=T
Begin Job Session Record: File:blk=0:598161 SessId=1 SessTime=1187776900 
JobId=159
   Job=Client1.2007-08-22_11.03.36 Date=22-Aug-2007 11:03:39 Level=F Type=B
End Job Session Record: File:blk=0:598161 SessId=1 SessTime=1187776900 JobId=159
   Date=22-Aug-2007 11:03:39 Level=F Type=B Files=20 Bytes=1,807 Errors=0 
Status=T

Note that the Begin Job Session records have been replaced by duplicate End
Job Session records.

I don't know what the code was attempting to achieve, but the attached patch
will prevent this duplication of records in the output at least.

__Martin

Attachment: bcopy-eos-label.patch
Description: Binary data

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to