提交 6e3cf241 编写于 作者: T Trond Myklebust

NFSv4: Add a mapping for NFS4ERR_FILE_OPEN in nfs4_map_errors

With unlink is an asynchronous operation in the sillyrename case, it
expects nfs4_async_handle_error() to map the error correctly.
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 ccb46e20
...@@ -107,6 +107,8 @@ static int nfs4_map_errors(int err) ...@@ -107,6 +107,8 @@ static int nfs4_map_errors(int err)
return -EPROTONOSUPPORT; return -EPROTONOSUPPORT;
case -NFS4ERR_ACCESS: case -NFS4ERR_ACCESS:
return -EACCES; return -EACCES;
case -NFS4ERR_FILE_OPEN:
return -EBUSY;
default: default:
dprintk("%s could not handle NFSv4 error %d\n", dprintk("%s could not handle NFSv4 error %d\n",
__func__, -err); __func__, -err);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册