mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
nfs4: Let ReplyInterpreter provide original NFS4 error codes
This commit is contained in:
parent
f2da914d39
commit
462a54ced8
@ -46,6 +46,7 @@ DirEntry::~DirEntry()
|
||||
|
||||
ReplyInterpreter::ReplyInterpreter(RPC::Reply* reply)
|
||||
:
|
||||
fNFS4Error(NFS4_OK),
|
||||
fReply(reply)
|
||||
{
|
||||
if (reply != NULL)
|
||||
@ -62,7 +63,7 @@ ReplyInterpreter::~ReplyInterpreter()
|
||||
void
|
||||
ReplyInterpreter::_ParseHeader()
|
||||
{
|
||||
fReply->Stream().GetUInt();
|
||||
fNFS4Error = fReply->Stream().GetUInt();
|
||||
fReply->Stream().GetOpaque(NULL);
|
||||
fReply->Stream().GetUInt();
|
||||
}
|
||||
|
@ -45,6 +45,8 @@ public:
|
||||
inline status_t SetTo(RPC::Reply* reply);
|
||||
inline void Reset();
|
||||
|
||||
inline uint32 NFS4Error();
|
||||
|
||||
status_t Access(uint32* supported, uint32* allowed);
|
||||
status_t Close();
|
||||
status_t GetAttr(AttrValue** attrs, uint32* count);
|
||||
@ -72,6 +74,7 @@ private:
|
||||
|
||||
static status_t _NFS4ErrorToHaiku(uint32 x);
|
||||
|
||||
uint32 fNFS4Error;
|
||||
RPC::Reply* fReply;
|
||||
};
|
||||
|
||||
@ -99,6 +102,13 @@ ReplyInterpreter::Reset()
|
||||
}
|
||||
|
||||
|
||||
inline uint32
|
||||
ReplyInterpreter::NFS4Error()
|
||||
{
|
||||
return fNFS4Error;
|
||||
}
|
||||
|
||||
|
||||
inline status_t
|
||||
ReplyInterpreter::LookUp()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user