* nfs-utils on uClibc based system? mount failures
@ 2004-02-18 22:56 Pete Flugstad
0 siblings, 0 replies; 2+ messages in thread
From: Pete Flugstad @ 2004-02-18 22:56 UTC (permalink / raw)
To: nfs
(please reply to me directly as I'm not subscribed to this list)
Hello,
Has anyone gotten nfs-utils to work on a uClibc based system. I'm
using Linux 2.4.25 (yup, just built it today) with all the NFS server
stuff compiled in. Root and userspace are from the pre-built uClibc
development system (http://www.uclibc.org/toolchains.html) - I'm
currently using 0.9.23, which is a little old, but I hope that doesn't
matter. This is GCC 3.3.1 based.
I managed to get nfs-utils (1.0.6) built for this system after
hacking up a fake getrpcbynumber_r, which uClibc doesn't have (I called
getrpcbynumber and copied the result into the result buffer - yes, I
know it's not thread safe, but I don't see how that would be causing my
problems). BTW, is getrpcbynumber_r actually documented anywhere - all
the man pages I found had the wrong parameters.
Anyway I got it running, but what I'm seeing now is that all mount
requests are failing. I've debugged mountd, and it looks like all the
auth stuff is working. What seems to be failing is a call to
nfsctl(NFSCTL_EXPORT, ...). This is the call stack when that happens:
...
mount_mnt_3_svc
get_rootfh
export_export
nfsexport
nfsctl
syscall
Everything before the nfsctl/syscall seems to work just fine. All
the exports seem to be setup just fine.
I have the system setup if anyone else wants more debugging info.
I'll see if I can get a dump of the arguments in nfsctl when it dies. I
could even let someone ssh in if they wish.
Pete
PS: please reply to me directly as I'm not subscribed to this list.
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* nfs-utils on uClibc based system? mount failures
@ 2004-02-19 16:08 Pete Flugstad
0 siblings, 0 replies; 2+ messages in thread
From: Pete Flugstad @ 2004-02-19 16:08 UTC (permalink / raw)
To: nfs
(resend after subscribing to list...)
Hello,
Has anyone gotten nfs-utils to work as a server on a Linux uClibc
based system. I'm using Linux 2.4.25 (yup, just built it yesterday)
with all the NFS server stuff compiled in (semi-embedded system, no
modules). Root and userspace are mostly from the pre-built uClibc
development system (http://www.uclibc.org/toolchains.html) - I'm
currently using 0.9.23, which is a little old, but I hope that doesn't
matter. This is GCC 3.3.1 based.
I managed to get nfs-utils (1.0.6) built for this system after
hacking up a fake getrpcbynumber_r, which uClibc doesn't have (I called
getrpcbynumber and copied the result into the result buffer - yes, I
know it's not thread safe, but I don't see how that would be causing my
problems). BTW, is getrpcbynumber_r actually documented anywhere - all
the man pages I found had the wrong (not enough) parameters - I had to
kind of guess what was going on.
Anyway I got it running, but what I'm seeing now is while I can
export things OK, any mount request for something I've exported are
failing. I've debugged mountd, and it looks like all the auth stuff is
working. What seems to be failing is a call to nfsctl(NFSCTL_EXPORT,
...). This is the call stack when that happens:
...
mount_mnt_3_svc
get_rootfh
export_export
nfsexport
nfsctl
syscall
Everything before the nfsctl/syscall seems to work just fine.
get_rootfs does the authentication and that works OK. The syscall
however, returns -1, and sets errno to be 22 (EINVAL).
I have the system setup if anyone else wants more debugging info.
I'll see if I can get a dump of the arguments in nfsctl when it dies. I
could even let someone ssh into if they wish.
I don't see how uClibc could be causing a problem, but I don't know
for sure.
Thanks,
Pete
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-19 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18 22:56 nfs-utils on uClibc based system? mount failures Pete Flugstad
-- strict thread matches above, loose matches on Subject: below --
2004-02-19 16:08 Pete Flugstad
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.