• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching defs:start

142     if (   jnl->jhdr->start <= 0 \
143 || jnl->jhdr->start > jnl->jhdr->size\
144 || jnl->jhdr->start > 1024*1024*1024) {\
145 panic("%s:%d: jhdr start looks bad (0x%llx max size 0x%llx)\n", \
146 __FILE__, __LINE__, jnl->jhdr->start, jnl->jhdr->size);\
175 panic("%s:%d: tr journal start looks bad: 0x%llx\n", __FILE__, __LINE__, tr->journal_start);\
190 // headers that are at the start of each transaction.
542 panic("jnl: buffer_flushed: did not find tr w/start @ %lld (tr %p, jnl %p)\n",
640 jnl->jhdr->start = SWAP64(jnl->jhdr->start);
944 index--; // start with the last index used within the above loop
1014 // wrap the start ptr if it points to the very end of the journal
1015 if (jnl->jhdr->start == jnl->jhdr->size) {
1016 jnl->jhdr->start = jnl->jhdr->jhdr_size;
1022 if (jnl->jhdr->start == jnl->jhdr->end) {
1026 orig_jnl_start = jnl->jhdr->start;
1051 jnl->jdev_name, jnl->jhdr->start, jnl->jhdr->end, jnl->jdev_offset);
1053 while(check_past_jnl_end || jnl->jhdr->start != jnl->jhdr->end) {
1054 offset = blhdr_offset = jnl->jhdr->start;
1128 if (blhdr_offset >= jnl->jhdr->end && jnl->jhdr->start <= jnl->jhdr->end) {
1132 jnl->jdev_name, jnl->jhdr->start, jnl->jhdr->end);
1133 if (jnl->jhdr->start != jnl->jhdr->end) {
1134 jnl->jhdr->start = jnl->jhdr->end;
1176 // blhdr->num_blocks-1, jnl->jhdr->start);
1251 printf("jnl: %s: no known good txn start offset! aborting journal replay.\n", jnl->jdev_name);
1255 jnl->jhdr->start = orig_jnl_start;
1259 printf("jnl: %s: restarting journal replay (%lld - %lld)!\n", jnl->jdev_name, jnl->jhdr->start, jnl->jhdr->end);
1263 jnl->jhdr->start += blhdr->bytes_used;
1264 if (jnl->jhdr->start >= jnl->jhdr->size) {
1266 jnl->jhdr->start = (jnl->jhdr->start % jnl->jhdr->size) + jnl->jhdr->jhdr_size;
1269 if (jnl->jhdr->start == jnl->jhdr->end) {
1274 if (jnl->jhdr->start != jnl->jhdr->end) {
1275 printf("jnl: %s: start %lld != end %lld. resetting end.\n", jnl->jdev_name, jnl->jhdr->start, jnl->jhdr->end);
1276 jnl->jhdr->end = jnl->jhdr->start;
1283 * start max_bsize at PAGE_SIZE
1566 jnl->jhdr->start = phys_blksz; // start at block #1, block #0 is for the jhdr itself
1572 jnl->active_start = jnl->jhdr->start;
1575 // jnl->jhdr->start = jnl->jhdr->size - (phys_blksz*3);
1715 if (jnl->jhdr->start == jnl->jhdr->end) {
1731 if ( jnl->jhdr->start <= 0
1732 || jnl->jhdr->start > jnl->jhdr->size
1733 || jnl->jhdr->start > 1024*1024*1024) {
1734 printf("jnl: %s: open: jhdr start looks bad (0x%llx max size 0x%llx)\n",
1735 jdev_name, jnl->jhdr->start, jnl->jhdr->size);
1757 // XXXdbg if ((jnl->jhdr->start % jnl->jhdr->jhdr_size) != 0) {
1758 if ((jnl->jhdr->start % 512) != 0) {
1759 printf("jnl: %s: open: journal start (0x%llx) not a multiple of 512?\n",
1760 jdev_name, jnl->jhdr->start);
1773 printf("jnl: %s: journal start/end pointers reset! (jnl %p; s 0x%llx e 0x%llx)\n",
1774 jdev_name, jnl, jnl->jhdr->start, jnl->jhdr->end);
1775 jnl->jhdr->start = jnl->jhdr->end;
1793 jnl->active_start = jnl->jhdr->start;
1904 // if the start and end are equal then the journal is clean.
1907 if (jnl.jhdr->start == jnl.jhdr->end) {
1928 volatile off_t *start, *end;
1934 // we start tearing things down properly.
1959 //start = &jnl->jhdr->start;
1960 start = &jnl->active_start;
1963 while (*start != *end && counter++ < 5000) {
1964 //printf("jnl: close: flushing the buffer cache (start 0x%llx end 0x%llx)\n", *start, *end);
1971 if (*start != *end) {
1973 jnl->jdev_name, *start, *end);
1977 jnl->jhdr->start = jnl->active_start;
2022 printf(" start: 0x%.8llx\n", jnl->jhdr->start);
2042 if (jnl->jhdr->start < jnl->jhdr->end) {
2043 free_space_offset = jnl->jhdr->size - (jnl->jhdr->end - jnl->jhdr->start) - jnl->jhdr->jhdr_size;
2044 } else if (jnl->jhdr->start > jnl->jhdr->end) {
2045 free_space_offset = jnl->jhdr->start - jnl->jhdr->end;
2074 "(jnl @ %p s %lld e %lld f %lld [active start %lld]).\n", jnl,
2075 jnl->jhdr->start, jnl->jhdr->end, free_space(jnl), jnl->active_start);
2087 // here's where we lazily bump up jnl->jhdr->start. we'll consume
2115 jnl->jhdr->start = jnl->old_start[i];
2126 // if we bumped the start, loop and try again
2132 // bump the jhdr->start to be the same as active_start
2135 // this then jhdr->start would never get updated and we
2137 // start of the loop.
2139 jnl->jhdr->start = jnl->active_start;
2235 // as well as updating jnl->jhdr->start
2237 printf("jnl: %s: start transaction failed: no space\n", jnl->jdev_name);
2295 //printf("jnl: mod block start (bp 0x%x vp 0x%x l/blkno %qd/%qd bsz %d; total bytes %d)\n",
2301 panic("jnl: mod block start: bufsize %d not a multiple of block size %d\n",
2700 // one of them so we don't start hogging too much memory.
2741 (void)tsleep((void *)jnl, PRIBIO, "jnl-old-start-sleep", 1);
2904 panic("jnl: end_transaction: bad tr journal start/end: 0x%llx 0x%llx\n",
3237 * offset The new journal byte offset (from start of the journal device).
3307 jnl->jhdr->start = jnl->jhdr->end = jnl->jhdr->jhdr_size;
3309 jnl->active_start = jnl->jhdr->start;