Lines Matching refs:journal

809 	// Check if we need to do late journal initialization.  This only
811 // In that case hfs_late_journal_init() will go re-locate the journal
822 // journal which we couldn't find. in that case we do not want to
833 // if the journal failed to open, then set the lastMountedVersion
883 // journal and journal_info_block.
885 hfsmp->hfs_jnlfileid = GetFileInfo(vcb, kRootDirID, ".journal", &jnl_attr, NULL);
887 printf("hfs: danger! couldn't find the file-id's for the journal or journal_info_block\n");
1215 * Lock the HFS global journal lock
1281 * Unlock the HFS global journal lock
2375 printf("hfs: journal open cb: error %d looking up device %s (dev uuid %s)\n", error, bsd_name, uuid_str);
2383 printf("hfs: journal open cb: did not find %s (error %d)\n", bsd_name, error);
2387 // if the journal is dirty and we didn't specify a desired
2388 // journal device uuid, then do not use the journal. but
2389 // if the journal is just invalid (e.g. it hasn't been
2441 // printf("hfs: open journal dev: %s: locating any available non-dirty external journal partition\n", vol_device);
2443 // printf("hfs: open journal dev: %s: trying to find the external journal partition w/uuid %s\n", vol_device, uuid_str);
2450 printf("hfs: open_journal_dev: no available external journal partition found. waiting 10sec.\n");
2519 // available external journal partition
2554 // if the file system is read-only, check if the journal is empty.
2569 printf("hfs: early journal init: volume on %s is read-only and journal is dirty. Can not mount volume.\n",
2578 printf("hfs: Initializing the journal (joffset 0x%llx sz 0x%llx)...\n",
2600 //printf("hfs: Opening the journal (joffset 0x%llx sz 0x%llx vhp_blksize %d)...\n",
2626 // if the journal had to be replayed.
2638 printf("hfs: failed to reload the mdb after opening the journal (retval %d)!\n",
2648 // if we expected the journal to be there and we couldn't
2651 printf("hfs: early jnl init: failed to open/create the journal (retval %d).\n", retval);
2666 // the .journal files in case they moved (which can happen if you
2674 // If the info we find for the .journal_info_block and .journal files
2676 // with opening the journal normally.
2737 printf("hfs: can't read journal info block. disabling journaling.\n");
2747 fid = GetFileInfo(vcb, kRootDirID, ".journal", &jattr, &jfork);
2749 printf("hfs: can't find the journal file! disabling journaling (start: %d)\n",
2757 // make sure the journal file begins where we think it should.
2759 printf("hfs: The journal file moved (was: %lld; is: %d). Fixing up\n",
2767 // check the size of the journal file.
2769 printf("hfs: The journal file changed size! (was %lld; is %lld). Fixing up.\n",
2786 // since the journal is empty, just use any available external journal
2820 // if the file system is read-only, check if the journal is empty.
2835 printf("hfs: late journal init: volume on %s is read-only and journal is dirty. Can not mount volume.\n",
2844 printf("hfs: Initializing the journal (joffset 0x%llx sz 0x%llx)...\n",
2866 // then we need to throw away the journal because it
2868 // if the journal is empty this is no big deal. if the
2870 // journal over top of changes that someone else made.
2874 //printf("hfs: Opening the journal (joffset 0x%llx sz 0x%llx vhp_blksize %d)...\n",
2904 // if we expected the journal to be there and we couldn't
2907 printf("hfs: late jnl init: failed to open/create the journal (retval %d).\n", retval);
3178 * This includes journal and quota files.
3193 if ((strncmp(filename, ".journal", sizeof(".journal")) == 0) ||
3307 * The global lock should be held shared if journal is
3309 * of the journal lock, verify that we're not already
3399 * Flush the contents of the journal to the disk.
3403 * If TRUE, wait to write in-memory journal to the disk
3406 * consistently on the disk. This means that the journal
3410 * to be consistent on-disk instead of just the journal
3414 * If FALSE, only wait to write in-memory journal to the
3415 * disk consistently. This means that the journal still
3417 * metadata blocks in the journal transactions might be
3422 * guarantees consistent journal content on the disk.
3493 * do its writing via the journal, because that would be too much I/O
3658 * journal file, and sum of all of the above.
3695 /* Get information about journal file */
3696 hinfo->journal = howmany(hfsmp->jnl_size, hfsmp->blockSize);
3701 hinfo->journal;
3755 can flush the journal. */
3763 // Now that journal flush waits for all metadata blocks to