src/stored/match_bsr.c
int match_bsr_block(BSR *bsr, DEV_BLOCK *block)
{
   if (!bsr || !bsr->use_fast_rejection || (block->BlockVer < 2)) {
      return 1;                       /* cannot fast reject */
   }

   for ( ; bsr; bsr=bsr->next) {
      if (!match_block_sesstime(bsr, bsr->sesstime, block)) {
         continue;
      }
      if (!match_block_sessid(bsr, bsr->sessid, block)) {
         continue;
      }
      return 1;
   }
   return 0;
}
/*********************************************************************
 *
 *  Do fast block rejection based on bootstrap records.
 *    use_fast_rejection will be set if we have VolSessionId and VolSessTime
 *    in each record. When BlockVer is >= 2, we have those in the block header
 *    so can do fast rejection.
 *
 *   returns:  1 if block may contain valid records
 *             0 if block may be skipped (i.e. it contains no records of
 *                  that can match the bsr).
 *
 */
Do fast block rejection based on bootstrap records.
use_fast_rejection will be set if we have VolSessionId and VolSessTime
in each record. When BlockVer is >= 2, we have those in the block header
so can do fast rejection.

1 if block may contain valid records
0 if block may be skipped .
Do fast block rejection based on bootstrap records . use_fast_rejection will be set if we have VolSessionId and VolSessTime in each record . When BlockVer is > = 2 we have those in the block header so can do fast rejection . 1 if block may contain valid records 0 if block may be skipped .
int match_bsr_block(BSR *bsr, DEV_BLOCK *block)
{
   if (!bsr || !bsr->use_fast_rejection || (block->BlockVer < 2)) {
      return 1;                       
   }
   for ( ; bsr; bsr=bsr->next) {
      if (!match_block_sesstime(bsr, bsr->sesstime, block)) {
         continue;
      }
      if (!match_block_sessid(bsr, bsr->sessid, block)) {
         continue;
      }
      return 1;
   }
   return 0;
}
int match_bsr_block ( BSR * bsr , DEV_BLOCK * block ) { if ( ! bsr || ! bsr -> use_fast_rejection || ( block -> BlockVer < 2 ) ) { return 1 ; } for ( ; bsr ; bsr = bsr -> next ) { if ( ! match_block_sesstime ( bsr , bsr -> sesstime , block ) ) { continue ; } if ( ! match_block_sessid ( bsr , bsr -> sessid , block ) ) { continue ; } return 1 ; } return 0 ; }
Do fast block rejection based on bootstrap records.
Do fast block rejection based on bootstrap records .
/* cannot fast reject */