Whamcloud - gitweb
LU-3784 tune2fs: update i_size in ext2fs_file_write() 56/7556/5
authorNiu Yawei <yawei.niu@intel.com>
Thu, 5 Sep 2013 06:46:10 +0000 (02:46 -0400)
committerNiu Yawei <yawei.niu@intel.com>
Sat, 21 Sep 2013 02:15:40 +0000 (22:15 -0400)
commitdbab72b300d373d567af36bdec5a09d2ac33b1f5
tree40f289f7bff72eec38e4f28e5b49834bd7669a44
parent8f41a2b3fa29b028059d9bc3f88fee08a5884dd9
LU-3784 tune2fs: 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.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I7ec7d1fcd5e9a355ca0a4399e5e937f853f0a612
lib/ext2fs/fileio.c