Whamcloud - gitweb
libext2fs: strict inline data overwrite should not return ENOSPC
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 10 Aug 2014 22:27:10 +0000 (18:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Aug 2014 22:27:10 +0000 (18:27 -0400)
commitcffe0221eb53c2de739f483aeb368684206ad4a8
treea411acb88d8f28298d47f2ef577f21fd525a88d0
parentcd971869d77a9899db326d2ed42e1ef2916ba29f
libext2fs: strict inline data overwrite should not return ENOSPC

If we're doing a strict overwrite (same data size) of data in an
inline data file, we should be able to skip the size check.  If the
in-core EA representation is fine but the on-disk EA is slightly
corrupt (this happens when fixing minor errors in an inline dir), the
ext2fs_xattr_inode_max_size() call, which reads the disk EA, can lead
us to think that there's no space when in reality there is no issue
with doing a strict overwrite.

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