2008-08-04 19:57:29

by Chuck Lever

[permalink] [raw]
Subject: nfs-utils and unfsd

There is a generic RPC server helper in nfs-utils called rpc_init().
This API will need to be modified to support IPv6 in statd and mountd,
at least.

However, there is a comment inside support/nfs/rpcmisc.c, where
rpc_init() resides, that suggests that this interface is also used by
unfsd.

Is it OK for me to modify nfs-utils' copy of this function, or is
there any kind of ABI restriction between unfsd and nfs-utils?

--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com


2008-08-05 18:14:54

by Steve Dickson

[permalink] [raw]
Subject: Re: nfs-utils and unfsd



Chuck Lever wrote:
> There is a generic RPC server helper in nfs-utils called rpc_init().
> This API will need to be modified to support IPv6 in statd and mountd,
> at least.
>
> However, there is a comment inside support/nfs/rpcmisc.c, where
> rpc_init() resides, that suggests that this interface is also used by
> unfsd.
>
> Is it OK for me to modify nfs-utils' copy of this function, or is there
> any kind of ABI restriction between unfsd and nfs-utils?
I don't see any problem... Is there even a supported/maintained version
of unfsd out there today? I did a quick google search and didn't find
anything but man pages...

steved.

2008-08-04 20:19:25

by Chuck Lever

[permalink] [raw]
Subject: Re: nfs-utils and unfsd

On Aug 4, 2008, at 3:55 PM, Chuck Lever wrote:
> There is a generic RPC server helper in nfs-utils called
> rpc_init(). This API will need to be modified to support IPv6 in
> statd and mountd, at least.
>
> However, there is a comment inside support/nfs/rpcmisc.c, where
> rpc_init() resides, that suggests that this interface is also used
> by unfsd.
>
> Is it OK for me to modify nfs-utils' copy of this function, or is
> there any kind of ABI restriction between unfsd and nfs-utils?

I'd also like to point out that the block comment at the top of
support/nfs/rpcmisc.c says:

5 * This code is partially snarfed from rpcgen -s tcp -s udp,
6 * partly written by Mark Shand, Donald Becker, and Rick
7 * Sladkey. It was tweaked slightly by Olaf Kirch to be
8 * usable by both unfsd and mountd.
9 *
10 * This software may be used for any purpose provided
11 * the above copyright notice is retained. It is supplied
12 * as is, with no warranty expressed or implied.

The second paragraph refers to "the above copyright notice," but there
is no copyright notice.

--
Chuck Lever
chucklever[at]mac[dot]com


--
Chuck Lever
chuck[dot]lever[at]oracle[dot]com