• Home
  • Raw
  • Download

Lines Matching refs:out_file

79 	FILE		*out_file;  in do_logdump()  local
170 out_file = stdout; in do_logdump()
173 out_file = fopen(out_fn, "w"); in do_logdump()
174 if (!out_file) { in do_logdump()
248 fprintf(out_file, "Using external journal found at %s\n", in do_logdump()
255 dump_journal(argv[0], out_file, &journal_source); in do_logdump()
263 if (out_file && (out_file != stdout)) in do_logdump()
264 fclose(out_file); in do_logdump()
332 static void dump_journal(char *cmdname, FILE *out_file, in dump_journal() argument
367 fprintf(out_file, "Ext2 superblock header found.\n"); in dump_journal()
369 fprintf(out_file, "\tuuid=%s\n", jsb_buffer); in dump_journal()
370 fprintf(out_file, "\tblocksize=%d\n", blocksize); in dump_journal()
371 fprintf(out_file, "\tjournal data size %lu\n", in dump_journal()
385 fprintf(out_file, in dump_journal()
393 fprintf(out_file, "Journal starts at block %u, transaction %u\n", in dump_journal()
414 fprintf (out_file, "No magic number at block %u: " in dump_journal()
420 fprintf (out_file, "Found sequence %u (not %u) at " in dump_journal()
427 fprintf (out_file, "Found expected sequence %u, " in dump_journal()
435 dump_descriptor_block(out_file, source, buf, jsb, in dump_journal()
447 dump_revoke_block(out_file, buf, jsb, in dump_journal()
455 fprintf (out_file, "Unexpected block type %u at " in dump_journal()
463 static void dump_descriptor_block(FILE *out_file, in dump_descriptor_block() argument
484 fprintf(out_file, "Dumping descriptor block, sequence %u, at " in dump_descriptor_block()
508 dump_metadata_block(out_file, source, jsb, in dump_descriptor_block()
521 static void dump_revoke_block(FILE *out_file, char *buf, in dump_revoke_block() argument
532 fprintf(out_file, "Dumping revoke block, sequence %u, at " in dump_revoke_block()
543 fprintf(out_file, " Revoke FS block %u", rblock); in dump_revoke_block()
545 fprintf(out_file, "\n"); in dump_revoke_block()
547 fprintf(out_file," at block %u, sequence %u\n", in dump_revoke_block()
555 static void show_extent(FILE *out_file, int start_extent, int end_extent, in show_extent() argument
559 fprintf(out_file, "(%d+%u): %u ", in show_extent()
563 static void show_indirect(FILE *out_file, const char *name, __u32 where) in show_indirect() argument
566 fprintf(out_file, "(%s): %u ", name, where); in show_indirect()
570 static void dump_metadata_block(FILE *out_file, struct journal_source *source, in dump_metadata_block() argument
588 fprintf(out_file, " FS block %u logged at ", fs_blocknr); in dump_metadata_block()
590 fprintf(out_file, "sequence %u, ", transaction); in dump_metadata_block()
591 fprintf(out_file, "journal block %u (flags 0x%x)\n", log_blocknr, in dump_metadata_block()
626 fprintf(out_file, " (block bitmap for block %llu: " in dump_metadata_block()
636 fprintf(out_file, " (inode block for inode %u):\n", in dump_metadata_block()
640 internal_dump_inode(out_file, " ", inode_to_dump, inode, 0); in dump_metadata_block()
647 fprintf (out_file, " Blocks: "); in dump_metadata_block()
656 show_extent(out_file, start_extent, i, first); in dump_metadata_block()
661 show_extent(out_file, start_extent, i, first); in dump_metadata_block()
662 show_indirect(out_file, "IND", inode->i_block[i++]); in dump_metadata_block()
663 show_indirect(out_file, "DIND", inode->i_block[i++]); in dump_metadata_block()
664 show_indirect(out_file, "TIND", inode->i_block[i++]); in dump_metadata_block()
666 fprintf(out_file, "\n"); in dump_metadata_block()
670 do_hexdump(out_file, buf, blocksize); in dump_metadata_block()
674 static void do_hexdump (FILE *out_file, char *buf, int blocksize) in do_hexdump() argument
685 fprintf(out_file, " %04x: ", i); in do_hexdump()
687 fprintf(out_file, "%08x ", *intp++); in do_hexdump()
692 fprintf(out_file, "%c", c); in do_hexdump()
694 fprintf(out_file, "\n"); in do_hexdump()