commit | 50a676e944356e188917f5174a7478817024213c | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Fri Feb 17 09:23:12 2012 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Feb 17 15:28:21 2012 -0500 |
tree | 365d171b563d6cdd090f0253f7789a760c26a34c | |
parent | 2b7a30cc52fd27a1cf479d8682880d11ffd9850f [diff] |
e2image: attempt to use ftruncate64 to set i_size for raw images If ftruncate64() exists, try to use it to set i_size. This isn't guaranteed to work, per SuSv3, but if it doesn't work, it's guaranteed to return an error. So for file systems and/or operating systems that don't support extending i_size via ftruncate64(), fall back to writing the trailing null. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>