diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-03-18 14:47:15 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-03-18 14:47:15 -0400 |
commit | 4df1618250349dbe71f9474c42d52d7d03cc68a0 (patch) | |
tree | fac8ba06261a32afbffd1a6b427f56f539feeb62 /debugfs | |
parent | 412376efff3c0e0c2fea00666c2457e6f2ae1878 (diff) | |
download | e2fsprogs-4df1618250349dbe71f9474c42d52d7d03cc68a0.tar.gz |
add new superblock field: s_overhead_blocks
It turns out that it's very hard to calculate overheads in the face of
clustered allocation (bigalloc). This is because multiple metadata
blocks from different block groups can end up in the same allocation
cluster. Calculating the exact overhead requires O(all block bitmaps)
in memory, or O(number of block groups**2) in time. So we will
calculate this at mkfs time and stash it in the superblock.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r-- | debugfs/set_fields.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index 9d7099b2..e4fdeee6 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -142,6 +142,7 @@ static struct field_set_info super_fields[] = { { "mount_opts", &set_sb.s_mount_opts, 64, parse_string }, { "usr_quota_inum", &set_sb.s_usr_quota_inum, 4, parse_uint }, { "grp_quota_inum", &set_sb.s_grp_quota_inum, 4, parse_uint }, + { "overhead_blocks", &set_sb.s_overhead_blocks, 4, parse_uint }, { 0, 0, 0, 0 } }; |