Whamcloud - gitweb
Make the official name of the new debugfs set_inode command be
authorTheodore Ts'o <tytso@mit.edu>
Sat, 8 Jan 2005 02:14:12 +0000 (21:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 8 Jan 2005 02:14:12 +0000 (21:14 -0500)
set_inode_field, since it is more intuitive.

debugfs/ChangeLog
debugfs/debug_cmds.ct
debugfs/debugfs.8.in
debugfs/set_fields.c

index 6d57bb3..55ed0bb 100644 (file)
@@ -1,3 +1,12 @@
+2005-01-07  Theodore Ts'o  <tytso@mit.edu>
+
+       * debug_cmds.ct: Make the official name of set_inode be
+               set_inode_field, since it is more intuitive.
+
+       * set_fields.c (print_possible_fields): Document bmap[] in
+               "set_inode_field -l" listing.  Change name of set_inode to
+               set_inode_field in usage message.
+
 2004-12-23  Theodore Ts'o  <tytso@mit.edu>
 
        * set_fields.c: Add support for array indexes, which we use for
index 65ad998..06e6fe1 100644 (file)
@@ -125,7 +125,7 @@ request do_set_super, "Set superblock value",
        set_super_value, ssv;
 
 request do_set_inode, "Set inode field",
-       set_inode, si;
+       set_inode_field, sif;
 
 request do_logdump, "Dump the contents of the journal",
        logdump;
index b640bf9..e9b06d6 100644 (file)
@@ -393,7 +393,7 @@ Mark inode
 .I filespec
 as in use in the inode bitmap.
 .TP
-.I set_inode filespec field value
+.I set_inode_field filespec field value
 Modify the inode specified by 
 .I filespec
 so that the inode field
@@ -402,7 +402,7 @@ has value
 .I value.
 The list of valid inode fields which can be set via this command 
 can be displayed by using the command:
-.B set_inode -l
+.B set_inode_field -l
 .TP
 .I set_super_value field value
 Set the superblock field
index 12e8473..da699a7 100644 (file)
@@ -391,6 +391,8 @@ static void print_possible_fields(struct field_set_info *fields)
                        type = "hash algorithm";
                else if (ss->func == parse_time)
                        type = "date/time";
+               else if (ss->func == parse_bmap)
+                       type = "set physical->logical block map";
                strcpy(name, ss->name);
                if (ss->flags & FLAG_ARRAY) {
                        if (ss->max_idx > 0) 
@@ -435,7 +437,7 @@ void do_set_super(int argc, char *argv[])
 void do_set_inode(int argc, char *argv[])
 {
        const char *usage = "<inode> <field> <value>\n"
-               "\t\"set_inode -l\" will list the names of "
+               "\t\"set_inode_field -l\" will list the names of "
                "the fields in an ext2 inode\n\twhich can be set.";
        static struct field_set_info *ss;