From 6e375b85bd650a528fe4f5e52791aeedbf23f5c6 Mon Sep 17 00:00:00 2001 From: Pawel Dziepak Date: Thu, 20 Jun 2013 15:03:08 +0200 Subject: [PATCH] nfs4: Remove assertion against NFS4ERR_NOFILEHANDLE According to the NFS4 specification NFS4ERR_NOFILEHANDLE is returned only when the clients sends malformed request. FreeBSD nfsd implementation chooses to ignore that fact and returns this error code also for correctly formed requests that it can not service due to the restrictions in the server configuration. --- src/add-ons/kernel/file_systems/nfs4/NFS4Object.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/add-ons/kernel/file_systems/nfs4/NFS4Object.cpp b/src/add-ons/kernel/file_systems/nfs4/NFS4Object.cpp index c84ccec34c..2f40d6eac1 100644 --- a/src/add-ons/kernel/file_systems/nfs4/NFS4Object.cpp +++ b/src/add-ons/kernel/file_systems/nfs4/NFS4Object.cpp @@ -32,7 +32,6 @@ NFS4Object::HandleErrors(uint32& attempt, uint32 nfs4Error, RPC::Server* server, { // No request send by the client should cause any of the following errors. ASSERT(nfs4Error != NFS4ERR_CLID_INUSE); - ASSERT(nfs4Error != NFS4ERR_NOFILEHANDLE); ASSERT(nfs4Error != NFS4ERR_BAD_STATEID); ASSERT(nfs4Error != NFS4ERR_RESTOREFH); ASSERT(nfs4Error != NFS4ERR_LOCKS_HELD);