]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - debugfs/set_fields.c
add new superblock field: s_overhead_blocks
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Mar 2011 18:47:15 +0000 (14:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 18 Mar 2011 18:47:15 +0000 (14:47 -0400)
commit4df1618250349dbe71f9474c42d52d7d03cc68a0
treefac8ba06261a32afbffd1a6b427f56f539feeb62
parent412376efff3c0e0c2fea00666c2457e6f2ae1878
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>
debugfs/set_fields.c
lib/e2p/ls.c
lib/ext2fs/ext2_fs.h
lib/ext2fs/tst_super_size.c