nfs4: Partial handling of NFS4ERR_LEASE_MOVED error

This commit is contained in:
Pawel Dziepak 2012-06-26 21:27:11 +02:00
parent 9737896827
commit 684d0a1036
2 changed files with 6 additions and 0 deletions

View File

@ -1221,6 +1221,11 @@ Inode::_HandleErrors(uint32 nfs4Error, RPC::Server* serv,
fFilesystem->Migrate(fHandle, serv);
return true;
// lease has been moved, provoke server to return NFS4ERR_MOVED
case NFS4ERR_LEASE_MOVED:
Access(0);
return true;
default:
return false;
}

View File

@ -271,6 +271,7 @@ NFS4Server::_Renewal()
if (request.Reply().NFS4Error() == NFS4ERR_STALE_CLIENTID)
ServerRebooted(clientId);
// TODO: support NFS4ERR_LEASE_MOVED
}
return B_OK;