commit | 470ca046b1e682c419d50efc8d4941db1b8601d9 | [log] [tgz] |
---|---|---|
author | Niu Yawei <yawei.niu@gmail.com> | Tue Oct 08 11:30:10 2013 +0800 |
committer | Theodore Ts'o <tytso@mit.edu> | Tue Oct 08 11:36:52 2013 -0400 |
tree | fc361153281370c2c8f228369c0cae47ba0f3539 | |
parent | a25487cbaf0e340144cb4673d52136abdb3eb2cf [diff] |
libext2fs: update i_size in ext2fs_file_write() ext2fs_file_write() needs to update i_size on successful write, otherwise, ext2fs_file_read() in same open/close cycle will not be able to read the just written data. This fixes a bug which results in the the problem of quotacheck triggered on 'tune2fs -O quota' failed to write back multiple users/groups accounting information. Signed-off-by: Niu Yawei <yawei.niu@intel.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>