Re: [Nfs-ganesha-devel] A question about rpc requests maybe for Bill

2018-03-15 Thread Frank Filz
> On 3/15/18 7:57 PM, Frank Filz wrote:
> > NFS v4.1 has a max request size option for the session, I’m wondering if
> there’s a way to get the size of a given request easily.
> >
> Depends on how that's defined.  Bytes following header?  And what you need to
> do with it.
> 
> It might be simplest to add a data length field to the struct svc_req, and 
> set it
> during decode.

I just need to compare against the max request length set for a 4.1 session. I 
don't think it needs to be exact. I'm not sure if it's total request length or 
just the NFS portion.

Frank


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel


Re: [Nfs-ganesha-devel] A question about rpc requests maybe for Bill

2018-03-15 Thread William Allen Simpson

On 3/15/18 7:57 PM, Frank Filz wrote:

NFS v4.1 has a max request size option for the session, I’m wondering if 
there’s a way to get the size of a given request easily.


Depends on how that's defined.  Bytes following header?  And what you
need to do with it.

It might be simplest to add a data length field to the struct svc_req,
and set it during decode.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel


[Nfs-ganesha-devel] A question about rpc requests maybe for Bill

2018-03-15 Thread Frank Filz
NFS v4.1 has a max request size option for the session, I'm wondering if
there's a way to get the size of a given request easily.

 

Thanks

 

Frank

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel