e2fsprogs/lib
Darrick J. Wong cb803fc2ca libext2fs: don't fail when doing a strict rewrite of inline data
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@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2014-03-14 09:23:08 -04:00
..
blkid Merge branch 'maint' into next 2014-02-23 23:07:38 -05:00
e2p Merge branch 'maint' into next 2014-02-20 21:39:29 -05:00
et Use makeinfo --html instead of texi2html 2013-12-28 15:40:56 -05:00
ext2fs libext2fs: don't fail when doing a strict rewrite of inline data 2014-03-14 09:23:08 -04:00
quota Fix up the Makefiles dependencies in lib/ext2fs and lib/quota 2014-01-30 18:48:23 -05:00
ss libss: fix potential buffer overrun in list_rqs 2014-01-30 18:25:15 -05:00
uuid libuuid: add error checking to syscalls in get_clock() 2014-01-10 21:06:07 -05:00
Makefile.bsd-lib Include LDFLAGS when building BSD libraries 2012-05-11 22:21:08 -04:00
Makefile.checker Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.darwin-lib Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.elf-lib Put ELF_OTHER_LIBS in the right place for the linker 2012-08-06 12:30:49 -04:00
Makefile.library Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.profile Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.solaris-lib Put ELF_OTHER_LIBS in the right place for the linker 2012-08-06 12:30:49 -04:00
config.h.in Merge branch 'maint' into next 2014-01-30 19:05:16 -05:00
dirpaths.h.in Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
fpopen.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00