* System 5 habitat and NFS v3 mounts
@ 2002-01-23 18:14 Chuck McCrobie
0 siblings, 0 replies; only message in thread
From: Chuck McCrobie @ 2002-01-23 18:14 UTC (permalink / raw)
I'm having problems getting the system 5 habitat version of mount() to
work with nfs mount points. The default version of mount() - BSD -
works, so I know I have the nfs_args structure filled in correctly.
However, after building in the system 5 habitat, the mount() call
returns "ENOENT" for absolutely EVERYTHING passed to it. Here's a
snippet:
int fstype = MOUNT_NFS3;
char *dir = argv[2]; /* typically, I pass in "/mnt" */
struct nfs_args args;
void *dataptr = (void *) &args;
...fill in args correctly...
#if !defined __SVID__
error = mount(fstype,
dir,
0,
dataptr );
#else
error = mount(argv[1],
dir,
mflag,
fstype,
dataptr,
datalen);
#endif
At this point, for default (__SVID__ NOT DEFINED), error is 0 and I
can access the volume across NFS.
However, for __SVID__ defined, I get ENOENT.
I changed the mount() call to this:
error = mount(NULL, NULL, 0, 0, NULL, 0);
and also get ENOENT. I assume system 5 habitat mount call is broken
:(
What's up?
Chuck
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-01-23 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-23 18:14 System 5 habitat and NFS v3 mounts Chuck McCrobie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox