Whamcloud - gitweb
LU-13157 mdd: migrate readlink from wrong place 85/37285/4
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 20 Jan 2020 04:23:45 +0000 (12:23 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 Mar 2020 07:00:30 +0000 (07:00 +0000)
commita3b30423c6067b3e8644ecfb3269f8837af7e4cd
treeaa8ce0d855266882075d5c5b2a1c54fb7a39114e
parent48242f98c3add59d9e084d73057e64265230a19f
LU-13157 mdd: migrate readlink from wrong place

In osd_read(), if symlink name buf length is smaller than i_size,
return -EOVERFLOW, and compare inline data length with i_size
instead of buflen.

Updated sanity.sh 230b.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ia13b1f1079efc4ebd22ec400f1a909ff7ec2095d
Reviewed-on: https://review.whamcloud.com/37285
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-ldiskfs/osd_io.c
lustre/tests/sanity.sh