From: Theodore Ts'o Date: Sat, 8 Jan 2005 02:14:12 +0000 (-0500) Subject: Make the official name of the new debugfs set_inode command be X-Git-Tag: E2FSPROGS-1_36~75 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1d3a95111820e3e8e79b2ae18ed04f050cd3f0cb;p=tools%2Fe2fsprogs.git Make the official name of the new debugfs set_inode command be set_inode_field, since it is more intuitive. --- diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index 6d57bb3..55ed0bb 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,12 @@ +2005-01-07 Theodore Ts'o + + * 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 * set_fields.c: Add support for array indexes, which we use for diff --git a/debugfs/debug_cmds.ct b/debugfs/debug_cmds.ct index 65ad998..06e6fe1 100644 --- a/debugfs/debug_cmds.ct +++ b/debugfs/debug_cmds.ct @@ -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; diff --git a/debugfs/debugfs.8.in b/debugfs/debugfs.8.in index b640bf9..e9b06d6 100644 --- a/debugfs/debugfs.8.in +++ b/debugfs/debugfs.8.in @@ -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 diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index 12e8473..da699a7 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -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 = " \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;