Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jun 2015 19:22:37 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        "alex.burlyga.ietf alex.burlyga.ietf" <alex.burlyga.ietf@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: [nfs][client] - Question about handling of the NFS3_EEXIST error in SYMLINK rpc
Message-ID:  <154571553.61423606.1434842557502.JavaMail.root@uoguelph.ca>
In-Reply-To: <CA%2BJhTNTSC-xPVdpUGcQemVMLUwuQB6D8-3d2HD6WjU%2Bjd1SMNQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Alex Burlyga wrote:
> Hi,
> 
> NFS client code in nfsrpc_symlink() masks server returned NFS3_EEXIST
> error
> code
> by returning 0 to the upper layers. I'm assuming this was an attempt
> to
> work around
> some server's broken replay cache out there, however, it breaks a
> more
> common
> case where server is returning EEXIST for legitimate reason and
> application
> is expecting this error code and equipped to deal with it.
> 
> To fix it I see three ways of doing this:
>  * Remove offending code
>  * Make it optional, sysctl?
>  * On NFS3_EEXIST send READLINK rpc to make sure symlink content is
>  right
> 
> Which of the ways will maximize the chances of getting this fix
> upstream?
> 
Btw, I felt #2 above was appropriate but forgot to ask what others
thought w.r.t. this?

Thanks, rick

> One more point, old client circa FreeBSD 7.0 does not exhibit this
> problem.
> 
> Alex
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?154571553.61423606.1434842557502.JavaMail.root>