This directory contains the patch needed to turn your SunOS 4.1.x
NFS server machine into using asynchronous writes.

NOTE: THIS SHOULD NOT BE USED WITHOUT CARE SINCE THIS VIOLATES THE
      PROTOCOL AND MAY CASE DATA LOSS ON THE CLIENT SIDE (Ie, they
      think that data they have written are stored, and then the
      NFS server crasches and reboots. The clients then continue
      as nothing has happened, although the data never got to the
      disk). SO BEVARE. THIS PATCH IS APPLIED ON YOUR OWN RISK.

If you have the SunOS sources, then change the file 'nfsserver.c'
in the routine 'rfs_read()' from:

	error = VOP_RDWR(vp, &uio, UIO_READ, IO_SYNC, u.u_cred);

into:

	error = VOP_RDWR(vp, &uio, UIO_READ, 0, u.u_cred);

And then in the routine 'rfs_write()' you change:

	error = VOP_RDWR(vp, &uio, UIO_WRITE, IO_SYNC, u.u_cred);

into:

	error = VOP_RDWR(vp, &uio, UIO_WRITE, 0, u.u_cred);

And that's it.

The file nfs_server.o.sun4 contains a patched binary for Sun4, SunOS 4.1.x
kernels. Apply at your own risk.

Note: I didn't write this patch; Steinar Kjarnsroed (steinar@ifi.uio.no)
did. I wrote this note and created the tar.Z file though.

AS NOTE ABOVE; THIS IS ****NOT**** AN OFFICIAL OR SUPPORTED PATCH BY
ANY MEANS.

However, it will allow writes() to be **much** faster over NFS...

/Peter Eriksson (pen@lysator.liu.se)
