Diff for /xfs-cmds/xfsdump/common/stream.c between versions 1.12 and 1.13

version 1.12, 2006/05/24 06:08:55 version 1.13, 2007/02/01 19:10:50
Line 40  struct spm { Line 40  struct spm {
 typedef struct spm spm_t;  typedef struct spm spm_t;
 extern pid_t parentpid;  extern pid_t parentpid;
 static spm_t spm[ STREAM_SIMMAX * 3 ];  static spm_t spm[ STREAM_SIMMAX * 3 ];
   static bool_t initialized = BOOL_FALSE;
   
 void  void
 stream_init( void )  stream_init( void )
Line 53  stream_init( void ) Line 54  stream_init( void )
 #endif /* HIDDEN */  #endif /* HIDDEN */
   
         ( void )memset( ( void * )spm, 0, sizeof( spm ));          ( void )memset( ( void * )spm, 0, sizeof( spm ));
           initialized = BOOL_TRUE;
 }  }
   
 /*  /*
Line 136  stream_find_all( stream_state_t states[] Line 137  stream_find_all( stream_state_t states[]
         spm_t *ep = spm + N(spm);          spm_t *ep = spm + N(spm);
         ASSERT(nstates > 0 && npids > 0);          ASSERT(nstates > 0 && npids > 0);
   
           if (!initialized)
                   return 0;
   
         /* lock - make sure we get a consistent snapshot of the stream status */          /* lock - make sure we get a consistent snapshot of the stream status */
         lock();          lock();
         for ( ; p < ep && count < npids; p++ )          for ( ; p < ep && count < npids; p++ )

Removed from v.1.12  
changed lines
  Added in v.1.13


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>