Whamcloud - gitweb
Fix debugfs's set_inode_fields command from silently failing.
authorTheodore Ts'o <tytso@mit.edu>
Mon, 4 Jul 2005 17:24:40 +0000 (12:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 4 Jul 2005 17:24:40 +0000 (12:24 -0500)
The set_inodes_field command was silently failing when setting one of
the following fields: frag, fsize, uid_high, gid_high, and author.
The type size for these fields were set to an incorrect value in the
inode_fields table.

debugfs/ChangeLog
debugfs/set_fields.c

index ea89d34..b3ff40c 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-04  Theodore Ts'o  <tytso@mit.edu>
+
+       * set_fields.c: Fix a bug which caused set_inode_field to silently
+               fail when setting the following fields: frag, fsize,
+               uid_high, gid_high, and author.
+
 2006-06-30  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.38
index 35ddba9..f4f6784 100644 (file)
@@ -136,11 +136,11 @@ static struct field_set_info inode_fields[] = {
        { "file_acl", &set_inode.i_file_acl, 4, parse_uint },
        { "dir_acl", &set_inode.i_dir_acl, 4, parse_uint },
        { "faddr", &set_inode.i_faddr, 4, parse_uint },
-       { "frag", &set_inode.osd2.linux2.l_i_frag, 8, parse_uint },
-       { "fsize", &set_inode.osd2.linux2.l_i_fsize, 8, parse_uint },
-       { "uid_high", &set_inode.osd2.linux2.l_i_uid_high, 8, parse_uint },
-       { "gid_high", &set_inode.osd2.linux2.l_i_gid_high, 8, parse_uint },
-       { "author", &set_inode.osd2.hurd2.h_i_author, 8, parse_uint },
+       { "frag", &set_inode.osd2.linux2.l_i_frag, 1, parse_uint },
+       { "fsize", &set_inode.osd2.linux2.l_i_fsize, 1, parse_uint },
+       { "uid_high", &set_inode.osd2.linux2.l_i_uid_high, 2, parse_uint },
+       { "gid_high", &set_inode.osd2.linux2.l_i_gid_high, 2, parse_uint },
+       { "author", &set_inode.osd2.hurd2.h_i_author, 4, parse_uint },
        { "bmap", NULL, 4, parse_bmap, FLAG_ARRAY },
        { 0, 0, 0, 0 }
 };