cvs commit: src/sbin/jscan jfile.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Sep 6 19:35:22 PDT 2005
dillon 2005/09/06 19:34:37 PDT
DragonFly src repository
Modified files:
sbin/jscan jfile.c
Log:
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
http://www.dragonflybsd.org/cvsweb/src/sbin/jscan/jfile.c.diff?r1=1.8&r2=1.9&f=u
More information about the Commits
mailing list