diff options
| author | Chao Yu <yuchao0@huawei.com> | 2019-03-05 19:32:26 +0800 |
|---|---|---|
| committer | Josh Chasky <jchasky@gmail.com> | 2019-03-16 10:40:49 -0400 |
| commit | 555ed31bb64f0f3161324b1c394816c2dc12e342 (patch) | |
| tree | c547afd2295ac3cd0083d555d50b93092a5f067b /scripts/gdb/linux/utils.py | |
| parent | bac88df3320e21ad82bbaa2d3f63f72dc9587528 (diff) | |
f2fs: fix to adapt small inline xattr space in __find_inline_xattr()
With below testcase, we will fail to find existed xattr entry:
1. mkfs.f2fs -O extra_attr -O flexible_inline_xattr /dev/zram0
2. mount -t f2fs -o inline_xattr_size=1 /dev/zram0 /mnt/f2fs/
3. touch /mnt/f2fs/file
4. setfattr -n "user.name" -v 0 /mnt/f2fs/file
5. getfattr -n "user.name" /mnt/f2fs/file
/mnt/f2fs/file: user.name: No such attribute
The reason is for inode which has very small inline xattr size,
__find_inline_xattr() will fail to traverse any entry due to first
entry may not be loaded from xattr node yet, later, we may skip to
check entire xattr datas in __find_xattr(), result in such wrong
condition.
This patch adds condition to check such case to avoid this issue.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions
