Found this bug testing extended attributes.
# make a big symbolic link that is in the inode core and mostly fills it.
# CRC enabled filesystem will use a 68 byte smaller link in the test.
ln -s
1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/1234567890/0123456/a
a
# the extended attribute will bump the symbolic link to a remote extent
# I think only one of these attribute is needed, but they are so fun...
attr -Rs 1234567890ad a < /dev/null
attr -Rs 1234567890ae a < /dev/null
attr -Rs 1234567890af a < /dev/null
# the following remove will assert a debug kernel:
# XFS: Assertion failed: ip->i_d.di_nextents == 0, file: fs/xfs/xfs_inode.c,
line: 2036
rm a
|