diff options
author | dfr <dfr@FreeBSD.org> | 1997-06-03 13:56:55 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1997-06-03 13:56:55 +0000 |
commit | dc78066f3daf555d5ded6c5ed27b2937d87b1022 (patch) | |
tree | 8bde2c18a38821cb3db29aa0edab5d39550bdada /sys/nfsclient | |
parent | 8aa43912331e2ad1948d056741d934ac8f05f1ce (diff) | |
download | FreeBSD-src-dc78066f3daf555d5ded6c5ed27b2937d87b1022.zip FreeBSD-src-dc78066f3daf555d5ded6c5ed27b2937d87b1022.tar.gz |
Implement the async mount option for NFSv3. This makes NFS pretend that all
writes sent to the server were synchronous and therefore no commits are
needed. This is the same as the vfs.nfs.async variable on the server but
allows each client to choose whether to work this way.
Also make the vfs.nfs.async variable do the 'right' thing for NFSv3, i.e.
pretend that the write was synchronous.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index f5e7a63..387c424 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.51 1997/05/20 08:06:31 dfr Exp $ + * $Id: nfs_vnops.c,v 1.52 1997/06/03 10:03:40 dfr Exp $ */ @@ -1249,6 +1249,8 @@ nfs_writerpc(vp, uiop, cred, iomode, must_commit) tsiz -= len; } nfsmout: + if (vp->v_mount->mnt_flag & MNT_ASYNC) + committed = NFSV3WRITE_FILESYNC; *iomode = committed; if (error) uiop->uio_resid = tsiz; |