]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: update i_size in ext2fs_file_write()
authorNiu Yawei <yawei.niu@gmail.com>
Tue, 8 Oct 2013 03:30:10 +0000 (11:30 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 8 Oct 2013 15:36:52 +0000 (11:36 -0400)
commit470ca046b1e682c419d50efc8d4941db1b8601d9
treefc361153281370c2c8f228369c0cae47ba0f3539
parenta25487cbaf0e340144cb4673d52136abdb3eb2cf
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>
lib/ext2fs/fileio.c