Commit f23987c1 authored by Olga Kornievskaia's avatar Olga Kornievskaia Committed by Yang Yingliang
Browse files

NFSv4.2 fix handling of sr_eof in SEEK's reply



stable inclusion
from linux-4.19.191
commit 28a55a8a49f4ae334a8a6d4c1ad429ff7978bb4f

--------------------------------

[ Upstream commit 73f5c88f ]

Currently the client ignores the value of the sr_eof of the SEEK
operation. According to the spec, if the server didn't find the
requested extent and reached the end of the file, the server
would return sr_eof=true. In case the request for DATA and no
data was found (ie in the middle of the hole), then the lseek
expects that ENXIO would be returned.

Fixes: 1c6dcbe5 ("NFS: Implement SEEK")
Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 9b18370e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment