~ubuntu-branches/ubuntu/edgy/e2fsprogs/edgy-updates

« back to all changes in this revision

Viewing changes to debugfs/logdump.c

  • Committer: Bazaar Package Importer
  • Author(s): Theodore Y. Ts'o
  • Date: 2006-05-29 11:07:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060529110753-uvkuaxqr96y31kqy
Tags: 1.39-1
* New upstream version
* Fix debugfs's dump_unused command so it will not core dump on
  filesystems with a 64k blocksize
* Clarified and improved man pages, including spelling errors
  (Closes: #368392, #368393, #368394, #368179)
* New filesystems are now created with directory indexing and
  on-line resizing enabled by default
* Fix previously mangled wording in an older Debian changelog entry
* Fix doc-base pointer to the top-level html file (Closes: #362544, #362970)

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                blocknr -= (be32_to_cpu((jsb)->s_maxlen) -      \
71
71
                            be32_to_cpu((jsb)->s_first));
72
72
 
73
 
 
74
73
void do_logdump(int argc, char **argv)
75
74
{
76
75
        int             c;
86
85
        struct ext2_inode journal_inode;
87
86
        ext2_file_t     journal_file;
88
87
        char            *tmp;
89
 
        const char      *logdump_usage = ("Usage: logdump "
90
 
                                          "[-ac] [-b<block>] [-i<inode>] "
91
 
                                          "[-f<journal_file>] [output_file]");
92
88
        struct journal_source journal_source;
93
89
        struct ext2_super_block *es = NULL;
94
90
        
132
128
                        use_sb++;
133
129
                        break;
134
130
                default:
135
 
                        com_err(argv[0], 0, logdump_usage);
136
 
                        return;
 
131
                        goto print_usage;
137
132
                }
138
133
        }
139
134
        if (optind != argc && optind != argc-1) {
140
 
                com_err(argv[0], 0, logdump_usage);
141
 
                return;
 
135
                goto print_usage;
142
136
        }
143
137
 
144
138
        if (current_fs)
267
261
                fclose(out_file);
268
262
 
269
263
        return;
 
264
 
 
265
print_usage:
 
266
        fprintf(stderr, "%s: Usage: logdump [-ac] [-b<block>] [-i<inode>]\n\t"
 
267
                "[-f<journal_file>] [output_file]\n", argv[0]);
270
268
}
271
269
 
272
270