commit | 98dca6c552d73cc39a3cb9d16947b2df5c55ef21 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Mon Jan 21 13:43:18 2008 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Mon Jan 21 13:43:18 2008 -0500 |
tree | f52763136b635ae9a1b39f0d77cb87e23d0e09a3 | |
parent | 153439222e6a16e40be324408d8d19361bc1e65e [diff] |
resize2fs: Add sanity check for off_t overflow before truncating If we can't use ftruncate64(), and have to use ftruncate() instead, make sure that we don't accidentally truncate the size when we chop it down to an off_t before calling ftruncate(), lest we severely damage a filesystem image file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>