Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/nfs #if 0 out CREATE optimization for now because it has...



details:   https://anonhg.NetBSD.org/src/rev/17d07ecc963b
branches:  trunk
changeset: 566685:17d07ecc963b
user:      yamt <yamt%NetBSD.org@localhost>
date:      Mon May 17 12:17:18 2004 +0000

description:
#if 0 out CREATE optimization for now because it has a problem in the case
of O_CREAT|O_TRUNC, which is hard to be fixed without changing upper layer.

diffstat:

 sys/nfs/nfs_vnops.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 84f24d844a46 -r 17d07ecc963b sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c       Mon May 17 11:11:20 2004 +0000
+++ b/sys/nfs/nfs_vnops.c       Mon May 17 12:17:18 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vnops.c,v 1.198 2004/05/10 12:43:51 yamt Exp $     */
+/*     $NetBSD: nfs_vnops.c,v 1.199 2004/05/17 12:17:18 yamt Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.198 2004/05/10 12:43:51 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vnops.c,v 1.199 2004/05/17 12:17:18 yamt Exp $");
 
 #include "opt_nfs.h"
 #include "opt_uvmhist.h"
@@ -933,6 +933,7 @@
                *vpp = NULLVP;
        }
 dorpc:
+#if 0
        /*
         * because nfsv3 has the same CREATE semantics as ours,
         * we don't have to perform LOOKUPs beforehand.
@@ -948,6 +949,7 @@
                cnp->cn_flags |= SAVENAME;
                return (EJUSTRETURN);
        }
+#endif /* 0 */
 
        error = 0;
        newvp = NULLVP;



Home | Main Index | Thread Index | Old Index