From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,5c0f3dfd3e7fc621,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-01-23 10:14:37 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mccrobie@usdesign.com (Chuck McCrobie) Newsgroups: comp.unix.tru64 Subject: System 5 habitat and NFS v3 mounts Date: 23 Jan 2002 10:14:36 -0800 Organization: http://groups.google.com/ Message-ID: <5369defb.0201231014.33d6a812@posting.google.com> NNTP-Posting-Host: 209.9.228.163 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1011809677 23222 127.0.0.1 (23 Jan 2002 18:14:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Jan 2002 18:14:37 GMT Xref: archiver1.google.com comp.unix.tru64:6549 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