Skip to contentSkip to conversation

debugfs.ocfs2 usage message fix

Ocfs2-devel GONG Jie 1 participant 1 message Aug 24, 2006 OCFS2

lore
Share & tools
lore

GONG Jie

author
#0 lore raw

Hi all,

The help message in debufs.ocfs2 is not consist among ``extent'', ``findpath'', ``locate'', ``ncheck'' and ``help''.

``help'' show that extent accept a block number as its argument. ---8<---
extent <block#> Show extent block
---8<---

But ``extent'' says its argument is an inode number. ---8<---
debugfs: extent
usage: extent <inode#>
---8<---

It is confused. So I change function process_inodestr_args() to fix that.

---8<---

commands.c +1 -1
Index: debugfs.ocfs2/commands.c
===================================================================
@@ -285,7 +285,7 @@ static int process_inodestr_args(char **
 	--i;
 
 	if (!i) {
-		fprintf(stderr, "usage: %s <inode#>\n", args[0]);
+		fprintf(stderr, "usage: %s <block#>\n", args[0]);
 		return -1;
 	}
 

---8<---

Signature · 8 lines
Regards,

GONG Jie
Linux Engineering, Emerging Technology & Solution Development
Oracle Software Research and Development Center
Tel:    +86-10-82786289
Mobile: +86-13011102030
Email:  [email protected]