ceph: do not print the whole xattr value if it's too long
authorXiubo Li <xiubli@redhat.com>
Tue, 28 Feb 2023 12:40:51 +0000 (20:40 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 30 Apr 2023 10:37:28 +0000 (12:37 +0200)
commit7a6c3a035a2e133b41d01c1a479b50aac4aeecad
tree363443af9a778d934ac1d94ab6a47e26f8bb8578
parent457391b0380335d5e9a5babdec90ac53928b23b4
ceph: do not print the whole xattr value if it's too long

If the xattr's value size is long enough the kernel will warn and
then will fail the xfstests test case.

Just print part of the value string if it's too long.

At the same time fix the function name issue in the debug logs.

Link: https://tracker.ceph.com/issues/58404
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/xattr.c