[PATCH e2fsprogs-1.40.8] logdump : Add the missing option in usage of logdump.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <mkatiyar@xxxxxxxxx>

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
***********************************************
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux