Re: [PATCH] for knfsd (Please test!!!)

G. Allen Morris III (gam3@dharma.sehda.com)
Thu, 10 Sep 1998 07:55:54 -0700


nfsctl(NFSCTL_GETFH, ....)

The new call is:

nfsctl(NFSCTL_GETFD, ....)

Here is the call I added to my support/nfs/getfh.c file

struct knfs_fh *
getfd(struct sockaddr *addr, char *path)
{
static union nfsctl_res res;
struct nfsctl_arg arg;

arg.ca_version = NFSCTL_VERSION;
arg.ca_getfd.gd_version = 2; /* obsolete */
strncpy(arg.ca_getfd.gd_path, path, NFS_MAXPATHLEN);
memcpy(&arg.ca_getfd.gd_addr, addr, sizeof(struct sockaddr_in));

if (nfsctl(NFSCTL_GETFD, &arg, &res) < 0)
return NULL;

return &res.cr_getfh;
}

>>>H.J. Lu said:
> >
> > This is a multipart MIME message.
> >
> > --==_Exmh_8372288280
> > Content-Type: text/plain; charset=us-ascii
> >
> > Attached is a patch for fs/nfsd. It attempts to fix 4 problems:
> >
>
> Sorry if I didn't make myself clear last time. If you change
> the ABI for nfsctl, like adding things to
>
> nfsctl(NFSCTL_GETFH, ....)
>
> please keep the old one and make the new one as
>
> nfsctl(NFSCTL_GETFH_NEW, ....)
>
> If you want, you can call the old one like
>
> nfsctl(NFSCTL_GETFH_OLD, ....)
>
> and the new one like
>
> nfsctl(NFSCTL_GETFH, ....)
>
> But the old binaries should still work. You can use the new NFSCTL_GETFH
> to emulate the old NFSCTL_GETFH.
>
> Thanks.
>
>
> H.J.

---------------------------------
G. Allen Morris III

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html