diff options
author | Theodore Ts'o <tytso@mit.edu> | 2004-12-16 20:15:35 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2004-12-16 20:15:35 -0500 |
commit | a06bd026c7f366c080db0a38ffbf1fe38abb0999 (patch) | |
tree | 20bbc890c0fc9f2eae9b4b846c9a27592455cb0d /debugfs | |
parent | e75cfc5da83c749be43f87c0ccf5ec1f1dd26e2c (diff) | |
download | e2fsprogs-a06bd026c7f366c080db0a38ffbf1fe38abb0999.tar.gz |
Add support for newer superblock fields in debugfs's set_super_value
command.
Diffstat (limited to 'debugfs')
-rw-r--r-- | debugfs/ChangeLog | 6 | ||||
-rw-r--r-- | debugfs/setsuper.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index bb6fc41e..0b6c28f9 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,9 @@ +2004-12-16 Theodore Ts'o <tytso@mit.edu> + + * setsuper.c: Add definitions for newer superblock fields: + reserved_gdt_blocks, jnl_backup_type, default_mount_opts, + first_meta_bg, and mkfs_time. + 2004-12-14 Theodore Ts'o <tytso@mit.edu> * Makefile.in: Move strip command to install-strip target. diff --git a/debugfs/setsuper.c b/debugfs/setsuper.c index 1ff32e39..60104a2b 100644 --- a/debugfs/setsuper.c +++ b/debugfs/setsuper.c @@ -76,6 +76,8 @@ static struct super_set_info super_fields[] = { { "prealloc_blocks", &set_sb.s_prealloc_blocks, 1, parse_uint }, { "prealloc_dir_blocks", &set_sb.s_prealloc_dir_blocks, 1, parse_uint }, + { "reserved_gdt_blocks", &set_sb.s_reserved_gdt_blocks, 2, + parse_uint }, /* s_padding1 */ { "journal_uuid", &set_sb.s_journal_uuid, 16, parse_uuid }, { "journal_inum", &set_sb.s_journal_inum, 4, parse_uint }, @@ -83,6 +85,11 @@ static struct super_set_info super_fields[] = { { "last_orphan", &set_sb.s_last_orphan, 4, parse_uint }, { "hash_seed", &set_sb.s_hash_seed, 16, parse_uuid }, { "def_hash_version", &set_sb.s_def_hash_version, 1, parse_hashalg }, + { "jnl_backup_type", &set_sb.s_jnl_backup_type, 1, parse_uint }, + /* s_reserved_word_pad */ + { "default_mount_opts", &set_sb.s_default_mount_opts, 4, parse_uint }, + { "first_meta_bg", &set_sb.s_first_meta_bg, 4, parse_uint }, + { "mkfs_time", &set_sb.s_mkfs_time, 4, parse_uint }, { 0, 0, 0, 0 } }; |