Whamcloud - gitweb
resize2fs: use blk64_t and location getters for free_gdp_blocks()
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Sep 2013 14:40:36 +0000 (10:40 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Sep 2013 14:40:48 +0000 (10:40 -0400)
commit0851517daa6f11f7bc6b63a82deef7f4561ee3c7
treea4d98dfad0afde640b55d3e1b8df1e5f00642cc2
parent816d2c9cf7fb17fe808a081e076cb558f44ec30d
resize2fs: use blk64_t and location getters for free_gdp_blocks()

free_gdp_blocks needs to be taught to use 64-bit fields and the appropriate
getters, otherwise it'll truncate high block numbers (when, say, resizing a
>16T fs) and mark the low numbered group descriptor blocks as free.  Yikes.

Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/resize2fs.c