]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove block number increment in read
authorKern Sibbald <kern@sibbald.com>
Tue, 8 Jul 2003 21:58:43 +0000 (21:58 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 8 Jul 2003 21:58:43 +0000 (21:58 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@628 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/stored/block.c
bacula/src/stored/block.h
bacula/src/stored/bls.c
bacula/src/stored/read.c
bacula/src/stored/read_record.c

index 67455ffafee03a37b0725abfd7a1446591da45f3..1502c9f495768d8e65b1c4f486a542c3f506bd85 100644 (file)
@@ -37,6 +37,7 @@ Testing to do: (painful)
 - Figure out how to use ssh or stunnel to protect Bacula communications.
 
 For 1.31 release:
+- Listing of Win32 restored files has ??????? for user.
 - Do full check the command line args in update (e.g. VolStatus ...).
 - In Win portable restore the directory is not create    
    27-Jun-2003 16:52 tibs-fd: kernsrestore.2003-06-27_16.52.20 Error:
@@ -62,6 +63,9 @@ For 1.31 release:
 
 
 For 1.32:
+- Allow multiple Storage specifications (or multiple names on
+  a single Storage specification) in the Job record. Thus a job 
+  can be backed up to a number of storage devices.
 - Add client name to cram-md5 challenge so Director can immediately
   verify if it is the correct client.
 - Implement ClientRunBeforeJob and ClientRunAfterJob.
@@ -120,10 +124,6 @@ For 1.32:
 - Add thread specific data to hold the jcr -- send error messages from
   low level routines by accessing it and using Jmsg().
 - Cancel waiting for Client connect in SD if FD goes away.
-- Testing Tibs job erred and hung director on Storage resource.  This was
-  because there were a whole pile of jobs hanging around in the SD  
-  waiting for a connection from the FD that was never coming.
-- Possibly update all client records at startup.
 
 - Add Progress command that periodically reports the progress of
   a job or all jobs.
@@ -158,9 +158,6 @@ For 1.32:
   disk only when the tape is full, then when a tape is hung move
   it to tape.
 - Implement a relocatable bacula.spec 
-- Allow multiple Storage specifications (or multiple names on
-  a single Storage specification) in the Job record. Thus a job 
-  can be backed up to a number of storage devices.
 - Implement dump/print label to UA
 - Add prefixlinks to where or not where absolute links to FD.
 - Issue message to mount a new tape before the rewind.
@@ -1019,3 +1016,7 @@ Done: (see kernsdone for more)
 - Pass prefix_links to FD.
 - Fix restore list of volumes if Volume not selected.
 - Complete (or turn off) the command line code in update.
+- Testing Tibs job erred and hung director on Storage resource.  This was
+  because there were a whole pile of jobs hanging around in the SD  
+  waiting for a connection from the FD that was never coming.
+- Possibly update all client records at startup.
index 9cf920f0c75fdc96b7e10a7423b7b54a7b516cf5..3f95c792ae26e9c84c7d8782bbd6ea525990bf2c 100644 (file)
@@ -651,7 +651,6 @@ reread:
    dev->EndBlock = dev->block_num;
    dev->EndFile  = dev->file;
    dev->block_num++;
-   block->BlockNumber++;
 
    /* Update jcr values */
    if (dev->state & ST_TAPE) {
index 2972bded93d8ebed176adffaf44ba7ec4629a963..e52e075079772af5c8ffd5a94750e2f3dbbaf66a 100644 (file)
@@ -105,6 +105,6 @@ struct DEV_BLOCK {
    POOLMEM *buf;                      /* actual data buffer */
 };
 
-#define block_is_empty(block) !((block)->read_len)
+#define block_is_empty(block) ((block)->read_len == 0)
 
 #endif
index 77af116b5eb56683cc4da4a06250f9fc26abe2b4..17af6f323156a4b3f15bae51f5477453d949d7d1 100644 (file)
@@ -283,8 +283,8 @@ static void do_blocks(char *infname)
         continue;
       }
       Dmsg5(100, "Blk=%u blen=%u bVer=%d SessId=%u SessTim=%u\n",
-        block->BlockNumber, block->block_len, block->BlockVer,
-        block->VolSessionId, block->VolSessionTime);
+       block->BlockNumber, block->block_len, block->BlockVer,
+       block->VolSessionId, block->VolSessionTime);
       if (verbose == 1) {
         read_record_from_block(block, rec);
          Pmsg7(-1, "Block: %u blen=%u First rec FI=%s SessId=%u SessTim=%u Strm=%s rlen=%d\n",
index b47362e48a6ff8d97466ca71de119809fea4f5c9..2777002b196b39c112ea0a9c951a70bed9324335 100644 (file)
@@ -142,7 +142,7 @@ int do_read_data(JCR *jcr)
       }
 
       if (!block_is_empty(block) && !match_bsr_block(jcr->bsr, block)) {
-         Dmsg5(100, "reject Blk=%u blen=%u bVer=%d SessId=%u SessTim=%u\n",
+         Dmsg5(150, "reject Blk=%u blen=%u bVer=%d SessId=%u SessTim=%u\n",
            block->BlockNumber, block->block_len, block->BlockVer,
            block->VolSessionId, block->VolSessionTime);
         empty_block(block);          /* force read next block */
index 92930f15629bb334f6d3acbf51dc2267d997ead7..8fd93d5b33996e83c2aa760b442966792767f6ce 100644 (file)
@@ -112,13 +112,13 @@ int read_records(JCR *jcr,  DEVICE *dev,
         }
       }
       if (!match_bsr_block(jcr->bsr, block)) {
-         Dmsg5(100, "reject Blk=%u blen=%u bVer=%d SessId=%u SessTim=%u\n",
+         Dmsg5(150, "reject Blk=%u blen=%u bVer=%d SessId=%u SessTim=%u\n",
            block->BlockNumber, block->block_len, block->BlockVer,
            block->VolSessionId, block->VolSessionTime);
         continue;
       }
       if (verbose) {
-         Dmsg4(000, "Block: %d VI=%u VT=%u blen=%d\n", block->BlockNumber, 
+         Pmsg4(000, "Block: %d VI=%u VT=%u blen=%d\n", block->BlockNumber, 
            block->VolSessionId, block->VolSessionTime, block->block_len);
       }