commit | 299cc61755f72311df002cc99dae13f469e0a198 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Thu Dec 12 13:31:35 2013 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Dec 12 13:32:25 2013 -0500 |
tree | b3f923a33b73d8a8934eec56e5dcc315bd5c8908 | |
parent | 4b58df1a53f517d700d921714610d1cec524dc92 [diff] |
libext2fs: zero block contents past EOF when setting size When we set the file size, find the block containing EOF, and zero everything in that block past EOF so that we can't return stale data if we ever use fallocate or truncate to lengthen the file. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>