2002-03-16 14:21:52

by Russ Fink

[permalink] [raw]
Subject: mount(2) returns EINVAL - programming prob

Hello,

I am using the UNIX mount(2) system call, and it's returning EINVAL.

If this isn't the proper forum for this question, could somebody kindly
redirect me? Thanks, now for the problem.

I have a piece of code that I inherited (similar to inheriting 24 cats from
late Aunt Hildebrandt) and is using the mount system call.

For some reason, it is returning the perror "mount: Invalid argument". I
inserted some fprintf's and found that the error value is EINVAL.

The man page for mount (mount(2)) says that EINVAL can be caused by a lot of
conditions - it seems to be a glorious catch-all error code, same as when
your "brake" light goes on in your car (meaning, for example, that one of
the 24 cats crawled into your air intake).

Has anyone had experience with mount(2), and/or resolving or chasing a
EINVAL problem? If so, and you need more details, I can provide them and/or
repost. Hopefully there's some simple way other than instrumenting the
source to mount() or running under the debugger to figure it out.

[Does anyone even know what library mount(2) resides in?]

Thanks,
Russ Fink

[The 24 cat example was purely hypothetical. It was actually only 23. :-]


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs