DragonFly BSD
DragonFly commits List (threaded) for 2005-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sbin/jscan jfile.c

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 6 Sep 2005 19:34:37 -0700 (PDT)

dillon      2005/09/06 19:34:37 PDT

DragonFly src repository

  Modified files:
    sbin/jscan           jfile.c 
  Rework and expand the algorithms in JSCAN, part 4/?.
  * Fix a bug in the handling of PAD records.  PAD records are special cased
    records in that the transaction id field may not be valid.  This occurs
    because a PAD record must be able to fill up the alignment space, which
    is only 16 bytes.  The journal_rawrecend structure winds up overlapping the
    transid of the journal_rawrecbeg structure in such cases.  We must skip
    such records.
  * Fix a bug in jfile->jf_pos tracking when doing forward scans.  Since we
    supporting being able to scan forwards or reverse from any point, we
    have to properly track the file seek offset for forward scans.
  Tested with /usr/obj recorded (-r) and mirrored (-m) through a buildworld.
  A diff -r after the buildworld completed showed a perfect copy!  The
  buildworld with both forward and reverse (undo) journaling enabled
  generated 24 50MB journal files (1.2 GB of journal data).
  Revision  Changes    Path
  1.9       +22 -3     src/sbin/jscan/jfile.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]