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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <darrick.wong@xxxxxxxxxx>

Thanks, applied.

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux