mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 00:15:50 +08:00
rtemsbsd/nfs: Add support to mount NFSv2
- NFSv2 requires userland RPC calls to determine the version of NFS and the FH. This is passed to the kernel. - Port more libc/rpc. Update #4475
This commit is contained in:
@@ -398,6 +398,11 @@ clnt_tli_create(int fd, const struct netconfig *nconf,
|
||||
goto err1; /* borrow errors from clnt_dg/vc creates */
|
||||
if (nconf) {
|
||||
cl->cl_netid = strdup(nconf->nc_netid);
|
||||
#ifdef __rtems__
|
||||
if (nconf->nc_device == NULL)
|
||||
cl->cl_tp = "";
|
||||
else
|
||||
#endif /* __rtems__ */
|
||||
cl->cl_tp = strdup(nconf->nc_device);
|
||||
} else {
|
||||
cl->cl_netid = "";
|
||||
|
Reference in New Issue
Block a user