* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $DragonFly: src/sys/kern/vfs_jops.c,v 1.20 2005/08/24 21:14:21 dillon Exp $
+ * $DragonFly: src/sys/kern/vfs_jops.c,v 1.21 2005/09/06 23:55:04 dillon Exp $
*/
/*
* Each mount point may have zero or more independantly configured journals
rawp->recsize = recsize; /* must be 16-byte aligned */
rawp->transid = transid;
/*
- * WARNING, rendp may overlap rawp->seqno. This is necessary to
+ * WARNING, rendp may overlap rawp->transid. This is necessary to
* allow PAD records to fit in 16 bytes. Use cpu_ccfence() to
* hopefully cause the compiler to not make any assumptions.
*/
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $DragonFly: src/sys/kern/vfs_journal.c,v 1.20 2005/08/24 21:14:21 dillon Exp $
+ * $DragonFly: src/sys/kern/vfs_journal.c,v 1.21 2005/09/06 23:55:04 dillon Exp $
*/
/*
* Each mount point may have zero or more independantly configured journals
rawp->recsize = recsize; /* must be 16-byte aligned */
rawp->transid = transid;
/*
- * WARNING, rendp may overlap rawp->seqno. This is necessary to
+ * WARNING, rendp may overlap rawp->transid. This is necessary to
* allow PAD records to fit in 16 bytes. Use cpu_ccfence() to
* hopefully cause the compiler to not make any assumptions.
*/
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $DragonFly: src/sys/sys/journal.h,v 1.8 2005/09/06 06:42:39 dillon Exp $
+ * $DragonFly: src/sys/sys/journal.h,v 1.9 2005/09/06 23:55:02 dillon Exp $
*/
#ifndef _SYS_JOURNAL_H_
* The journal_rawrecbeg structure MUST be a multiple of 16 bytes.
* The journal_rawrecend structure MUST be a multiple of 8 bytes.
*
- * NOTE: PAD RECORD SPECIAL CASE. Pad records are 16 bytes and have the
+ * NOTE: PAD RECORD SPECIAL CASE. Pad records can be 16 bytes and have the
* rawrecend structure overlayed on the sequence number field of the
* rawrecbeg structure. This is necessary because stream records are
* 16 byte aligned, not 24 byte aligned, and dead space is not allowed.
- * So the pad record must fit into any dead space.
+ * So the pad record must fit into any dead space. THEREFORE, THE TRANSID
+ * FIELD FOR A PAD RECORD MUST BE IGNORED.
*/
struct journal_rawrecbeg {
u_int16_t begmagic; /* recovery scan, endianess detection */
#define JREC_STREAMID_JMAX 0x2000 /* (one past the highest allowed id) */
#define JREC_DEFAULTSIZE 64 /* reasonable initial reservation */
-#define JREC_MINRECSIZE 32 /* (after alignment) */
+#define JREC_MINRECSIZE 16 /* (after alignment) */
#define JREC_MAXRECSIZE (128*1024*1024)
/*