Whamcloud - gitweb
libext2fs: fix iblocks correctly when expanding an inline_data file
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 14 Mar 2014 13:23:21 +0000 (09:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 14 Mar 2014 13:23:23 +0000 (09:23 -0400)
commit97bd89cd398108b05e33b676809b50348bf6abb2
treea6348a8dca1d54c725adbebf366a747858845c04
parentcb803fc2caa45fe40f326dcf51f525a56e8af01b
libext2fs: fix iblocks correctly when expanding an inline_data file

i_blocks covers the number of blocks allocated to an inode for data,
extents, and ACL blocks.  Since it's possible for a file to have a
separate ACL block and inline data, we must be careful when expanding
an inline data file to adjust, not set, the value of i_blocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/inline_data.c