Fix debugfs's set_inode_fields command from silently failing.

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.
bitmap-optimize
Theodore Ts'o 2005-07-04 12:24:40 -05:00
parent fea95ffc20
commit caf037a456
2 changed files with 11 additions and 5 deletions

View 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

View 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 }
};