-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary null check in generated code #59
Conversation
Can one of the admins verify this patch? |
ok to test |
2 similar comments
ok to test |
ok to test |
@pepijnve Thanks for the pull-request. Can you add "signed-off" to your commit? |
Signed-off-by: Pepijn Van Eeckhoudt <[email protected]>
d36aca0
to
f17cbd2
Compare
@kofemann done |
Build finished. |
retest this please |
Thanks! |
btw, do you implement nfs server? |
No, I'm using the client-side functionality only. Looking into using oncrpc4j for a user space NFSv3 client. |
cool. Have you seen our client (
https://github.com/dCache/nfs4j/tree/master/core/src/main/java/org/dcache/nfs/v4/client)
or one from EMC (https://github.com/EMCECS/nfs-client-java).
Out one is a playground staff for testing, but EMC's one looks like for a
production.
…-kofemann
/** caffeinated mutations of the core personality */
On Wed, Dec 6, 2017 at 6:05 PM, Pepijn Van Eeckhoudt < ***@***.***> wrote:
No, I'm using the client-side functionality only. Looking into using
oncrpc4j for a user space NFSv3 client.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#59 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjJ3Tnev8e12msJoDf2oQDxXVbWh60Sks5s9sl2gaJpZM4Q3-ZJ>
.
|
I had seen the nfs4j client code. That's v4 only though and I need to support v3. |
Well, we have implemented RPCSEC_GSS only for server side (see issue #28). |
jrpcgen currently generates unwanted null checks when the iterative linked list encoding approach is used. This causes compile errors in the generated code for fields with primitive types. As an example
For Entry3 from the NFSv3 spec
jrpcgen currently generates
This PR removes those null checks. As far as I can tell,
codingMethod
can be used without the additional check since it already generates code that deals with null values.