Hi,
logdump code currently accepts an option "-s" to use journal from the
superblock backup. However this option is not getting printed in the
usage which means user will not be aware of this option unless he
reads the code.
=========================================================================
Signed-off-by: Manish Katiyar <[email protected]>
diff -Naur a/debugfs/logdump.c b/debugfs/logdump.c
--- a/debugfs/logdump.c 2008-03-14 03:50:46.000000000 +0530
+++ b/debugfs/logdump.c 2008-03-31 09:51:14.000000000 +0530
@@ -88,7 +88,7 @@
struct journal_source journal_source;
struct ext2_super_block *es = NULL;
- journal_source.where = 0;
+ journal_source.where = JOURNAL_IS_INTERNAL;
journal_source.fd = 0;
journal_source.file = 0;
dump_all = 0;
@@ -264,7 +264,7 @@
return;
print_usage:
- fprintf(stderr, "%s: Usage: logdump [-ac] [-b<block>] [-i<inode>]\n\t"
+ fprintf(stderr, "%s: Usage: logdump [-acs] [-b<block>] [-i<inode>]\n\t"
"[-f<journal_file>] [output_file]\n", argv[0]);
}
==============================================================================
--
Thanks & Regards,
********************************************
Manish Katiyar ( http://mkatiyar.googlepages.com )
3rd Floor, Fair Winds Block
EGL Software Park
Off Intermediate Ring Road
Bangalore 560071, India
***********************************************