Date: Thu, 4 Feb 1999 17:17:02 -0800 (PST) From: jbarbee@singular.com (John Barbee) To: freebsd-questions@FreeBSD.ORG Subject: Sharity/nfs returns error: Operation not supported by device. Message-ID: <Pine.BSF.4.05.9902041706370.1212-100000@server7.singular.com>
next in thread | raw e-mail | index | archive | help
Hi,
I've been using Sharity of a while now and it all of the sudden
stopped working. I've tried reinstalling but that doesn't seem to help.
The error I get is:
Mounting Share: Operation not supported by device
Syslog note something similar:
sharity[338]: [1] nfs: sysMount(): [19] Operation not supported
by device
which comes from Sharity's nfs.c
----
rval = sysMount(mpAscii, &rootFh, sockFd, &sockAddr,
srvInetName(shrServer(this->share)), service, nfsPath, nfsTimeout,
nfsTransferSize, readOnly, nfsRetransmit);
storederr = errno;
uidsecBecomeUser();
if(rval < 0){
logPrintf(LOGM_ERROR, "nfs: sysMount(): [%d] %s\n", storederr,
sysSt rerror(storederr));
----
the sysMount command is defined in system.c as
----
int sysMount(char *mpAscii, void *rootFh, int sockFd, struct sockaddr_in
*so ckAddr, char *serverName, char *service, char *nfsPath, btint
nfsTimeout, btint nfsTransferSize, btbool readOnly, btint nfsRetransmit)
{
struct nfs_args nfs_args;
sockAddr->sin_len = sizeof(*sockAddr);
sockAddr->sin_family = AF_INET;
memset(&nfs_args, 0, sizeof(nfs_args));
#if defined __NetBSD__ || defined BSDI3 || (__FreeBSD__ >= 3) || defined
__OpenB SD__ || defined RHAPSODY
nfs_args.version = NFS_ARGSVERSION;
#endif
nfs_args.wsize = nfsTransferSize;
nfs_args.rsize = nfsTransferSize;
nfs_args.retrans = nfsRetransmit;
nfs_args.timeo = nfsTimeout; /* timeout */
nfs_args.addr = (struct sockaddr *)sockAddr;
nfs_args.addrlen = sizeof(*sockAddr);
nfs_args.sotype = SOCK_DGRAM;
nfs_args.flags = NFSMNT_SOFT | NFSMNT_RETRANS | NFSMNT_TIMEO |
NFSMNT_WSIZE | NFSMNT_RSIZE;
nfs_args.fh = rootFh;
#if !defined __bsdi__ || defined BSDI3
nfs_args.fhsize = 32;
#endif
nfs_args.hostname = serverName;
return mount(MOUNT_NFS, mpAscii, readOnly ? MNT_RDONLY : 0,
(caddr_t)&nf s_args);
}
----
I don't know C and I've never had to deal with NFS. Could somebody
explain to me why I'm getting this error? Sharity's cifsmount cmd is suid
root. The mountpoint does exists and I've tried grafting to different
mountpoints but I still get the same error. The mountpoint is owned by
the correct user. Sharity is able to login to the NT machine just fine,
it's the nfs mount that fails.
TIA
john.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902041706370.1212-100000>
