Re: NFS/RPC 2.2.13 request slot

Olaf Flebbe (O.Flebbe@science-computing.de)
Tue, 9 Nov 1999 22:15:37 +0100 (MET)


On Tue, 9 Nov 1999, Trond Myklebust wrote:

> >>>>> " " == Olaf Flebbe <o.flebbe@science-computing.de> writes:
>
>
> > But, the client (both plptools and amd) get an error message!
> > This shouldn't be. What can a client to against it?
>
> Which error message do they get, and what are the mount options being
> used?

from an strace of an cp to the mounted dir

write(5, "\310\223\372|7s\356!\215\245e\301o$\rG\356\36\270\230b"..., 4096) = -1 ENOSPC (No space left on device)

(The diagnostic is incorrect)

> Don't forget that if you're specifying the 'soft' mount option, then a
> major timeout will cause the error message -EIO to be sent to the
> application.

It does a hard mount...

nfs_mount_data.version = NFS_MOUNT_VERSION;
nfs_mount_data.fd = ksock;
nfs_mount_data.root = *root_fh; /* structure copy */
nfs_mount_data.flags = NFS_MOUNT_INTR | NFS_MOUNT_NOCTO;
nfs_mount_data.rsize = PBUFSIZE;
nfs_mount_data.wsize = PBUFSIZE;
nfs_mount_data.timeo = 600;
nfs_mount_data.retrans = 10; /* default 3 */
nfs_mount_data.acregmin = 3; /* default 3 seconds */
nfs_mount_data.acregmax = 60; /* default 60 seconds */
nfs_mount_data.acdirmin = 30; /* default 30 seconds */
nfs_mount_data.acdirmax = 60; /* default 60 seconds */
nfs_mount_data.addr = sain; /* structure copy */
strcpy(nfs_mount_data.hostname, PSIONHOSTNAME);

if (connect(ksock, (struct sockaddr *) &nfs_mount_data.addr, sizeof(nfs_mount_data.addr)) < 0) {
errorlog("Cannot connect to plpnfsd: %m\n");
exit(1);
}
mount_flags = MS_MGC_VAL;

if (mount("nfs", dir, "nfs", mount_flags, &nfs_mount_data)){

....
Cheers,

Olaf

---

Dr. Olaf Flebbe Phone +49 (0)7071-9457-32 science + computing gmbh FAX +49 (0)7071-9457-27 Hagellocher Weg 71 D-72070 Tuebingen Email: o.flebbe@science-computing.de

The amount of work to be done increases in proportion to the amount of work already completed.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/