Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: mccrobie@usdesign.com (Chuck McCrobie)
Subject: System 5 habitat and NFS v3 mounts
Date: 23 Jan 2002 10:14:36 -0800	[thread overview]
Message-ID: <5369defb.0201231014.33d6a812@posting.google.com> (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


                 reply	other threads:[~2002-01-23 18:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox