summaryrefslogtreecommitdiff
path: root/tests/f_write_ea_no_extra_isize
Commit message (Collapse)AuthorAgeFilesLines
* e2fsck: make sure system.data xattr is presentTheodore Ts'o2017-01-312-4/+21
| | | | | | | | | E2fsprogs used to assume that if i_size is less than 60 bytes, the system.data xattr isn't needed (and should be removed). The kernel disagree, and will declare the file system to be corrupted. Enforce the tighter constraints assumed by the kernel. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
* libext2fs: initialize i_extra_isize when writing EAsDarrick J. Wong2015-01-274-0/+20
If i_extra_isize is zero when we try to write extended attributes, we'll end up writing the EA magic into the i_extra_isize field, which causes a subsequent crash on big endian systems (when we try to write 0xEA02 bytes past the inode!). Therefore when the field is zero, set i_extra_isize to the desired extra_isize size, zero those bytes, and write the EAs after the end of the extended inode. v2: Don't bother if we have 128b inodes, and ensure that the value is 32b-aligned so that the EA magic starts on a 32b boundary. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>