Thread (88 messages) 88 messages, 3 authors, 2014-03-18

Re: [PATCH 09/49] libext2fs: don't fail when doing a strict rewrite of inline data

From: Theodore Ts'o <tytso@mit.edu>
Date: 2014-03-14 13:19:22

On Mon, Mar 10, 2014 at 11:54:56PM -0700, Darrick J. Wong wrote:
ext2fs_inline_data_set() tries to ensure that there is sufficient free
space in the inode to store the inline data.  Unfortunately, it gets
the check wrong -- ext2fs_xattr_inode_max_size() returns the amount of
unused bytes in the EA area, and _data_set() doesn't factor in the
size of the existing inline data.  Therefore, a strict rewrite of an
N-byte inlinedata with another N-byte inlinedata fails.

Fix the code to do the size check correctly.

Signed-off-by: Darrick J. Wong <redacted>
Thanks, applied.

					- Ted
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help