Re: sharing protocol defintions between client and server?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 13, 2013 at 08:21:16AM -0800, Christoph Hellwig wrote:
> >From a lot of the recent work it seems like there's basically no
> sharing of protocol definitions between the Linux NFS client and
> server, which seems fairly annoying to me.

What are you thinking of exactly?

I suspect that there could be more sharing.

> Is there a good historic
> reason for this and did we ever attempt to change it?  Maybe even
> use some kernel-specific rpcgen variant to generate them directly
> from the spec?

I don't know if anyone's looked into it.

There's a lot of hand-written xdr code (the encoders/decoders
themselves, the maxsz constants in fs/nfs/nfs*xdr.c, the _rsize junk in
fs/nfsd/nfs4proc.c, ...).  It seems error-prone to me though I can't
recall if we've had a lot of bugs there in practice.

--b.
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux