• Home
  • Raw
  • Download

Lines Matching refs:out_file

81 	FILE		*out_file;  in do_logdump()  local
180 out_file = stdout; in do_logdump()
183 out_file = fopen(out_fn, "w"); in do_logdump()
184 if (!out_file) { in do_logdump()
258 fprintf(out_file, "Using external journal found at %s\n", in do_logdump()
265 dump_journal(argv[0], out_file, &journal_source); in do_logdump()
273 if (out_file && (out_file != stdout)) in do_logdump()
274 fclose(out_file); in do_logdump()
343 static void dump_journal(char *cmdname, FILE *out_file, in dump_journal() argument
375 fprintf(out_file, "Ext2 superblock header found.\n"); in dump_journal()
377 fprintf(out_file, "\tuuid=%s\n", jsb_buffer); in dump_journal()
378 fprintf(out_file, "\tblocksize=%d\n", blocksize); in dump_journal()
379 fprintf(out_file, "\tjournal data size %lu\n", in dump_journal()
392 e2p_list_journal_super(out_file, jsb_buffer, in dump_journal()
394 fputc('\n', out_file); in dump_journal()
399 fprintf(out_file, in dump_journal()
407 fprintf(out_file, "Journal starts at block %u, transaction %u\n", in dump_journal()
432 fprintf (out_file, "No magic number at block %u: " in dump_journal()
438 fprintf (out_file, "Found sequence %u (not %u) at " in dump_journal()
446 fprintf (out_file, "Found expected sequence %u, " in dump_journal()
454 dump_descriptor_block(out_file, source, buf, jsb, in dump_journal()
466 dump_revoke_block(out_file, buf, jsb, in dump_journal()
474 fprintf (out_file, "Unexpected block type %u at " in dump_journal()
499 static void dump_descriptor_block(FILE *out_file, in dump_descriptor_block() argument
522 fprintf(out_file, "Dumping descriptor block, sequence %u, at " in dump_descriptor_block()
546 dump_metadata_block(out_file, source, jsb, in dump_descriptor_block()
559 static void dump_revoke_block(FILE *out_file, char *buf, in dump_revoke_block() argument
571 fprintf(out_file, "Dumping revoke block, sequence %u, at " in dump_revoke_block()
590 fprintf(out_file, " Revoke FS block %llu", rblock); in dump_revoke_block()
592 fprintf(out_file, "\n"); in dump_revoke_block()
594 fprintf(out_file," at block %u, sequence %u\n", in dump_revoke_block()
602 static void show_extent(FILE *out_file, int start_extent, int end_extent, in show_extent() argument
606 fprintf(out_file, "(%d+%u): %u ", in show_extent()
610 static void show_indirect(FILE *out_file, const char *name, __u32 where) in show_indirect() argument
613 fprintf(out_file, "(%s): %u ", name, where); in show_indirect()
617 static void dump_metadata_block(FILE *out_file, struct journal_source *source, in dump_metadata_block() argument
634 fprintf(out_file, " FS block %u logged at ", fs_blocknr); in dump_metadata_block()
636 fprintf(out_file, "sequence %u, ", transaction); in dump_metadata_block()
637 fprintf(out_file, "journal block %u (flags 0x%x)\n", log_blocknr, in dump_metadata_block()
672 fprintf(out_file, " (block bitmap for block %llu: " in dump_metadata_block()
682 fprintf(out_file, " (inode block for inode %u):\n", in dump_metadata_block()
686 internal_dump_inode(out_file, " ", inode_to_dump, inode, 0); in dump_metadata_block()
693 fprintf (out_file, " Blocks: "); in dump_metadata_block()
702 show_extent(out_file, start_extent, i, first); in dump_metadata_block()
707 show_extent(out_file, start_extent, i, first); in dump_metadata_block()
708 show_indirect(out_file, "IND", inode->i_block[i++]); in dump_metadata_block()
709 show_indirect(out_file, "DIND", inode->i_block[i++]); in dump_metadata_block()
710 show_indirect(out_file, "TIND", inode->i_block[i++]); in dump_metadata_block()
712 fprintf(out_file, "\n"); in dump_metadata_block()
716 do_hexdump(out_file, buf, blocksize); in dump_metadata_block()
720 static void do_hexdump (FILE *out_file, char *buf, int blocksize) in do_hexdump() argument
731 fprintf(out_file, " %04x: ", i); in do_hexdump()
733 fprintf(out_file, "%08x ", *intp++); in do_hexdump()
738 fprintf(out_file, "%c", c); in do_hexdump()
740 fprintf(out_file, "\n"); in do_hexdump()