Source-Changes-HG archive

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

[src/trunk]: src/sys/nfs In nfs_create(), make sure error is reset to 0 if we...



details:   https://anonhg.NetBSD.org/src/rev/e681cf868a97
branches:  trunk
changeset: 475017:e681cf868a97
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 29 17:01:21 1999 +0000

description:
In nfs_create(), make sure error is reset to 0 if we restart the operation.

diffstat:

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

diffs (26 lines):

diff -r abf7bf20af53 -r e681cf868a97 sys/nfs/nfs_vnops.c
--- a/sys/nfs/nfs_vnops.c       Thu Jul 29 15:40:48 1999 +0000
+++ b/sys/nfs/nfs_vnops.c       Thu Jul 29 17:01:21 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_vnops.c,v 1.102 1999/07/08 22:53:08 wrstuden Exp $ */
+/*     $NetBSD: nfs_vnops.c,v 1.103 1999/07/29 17:01:21 thorpej Exp $  */
 
 /*
  * Copyright (c) 1989, 1993
@@ -1269,7 +1269,7 @@
        struct nfsnode *np = (struct nfsnode *)0;
        struct vnode *newvp = (struct vnode *)0;
        caddr_t bpos, dpos, cp2;
-       int error = 0, wccflag = NFSV3_WCCRATTR, gotvp = 0, fmode = 0;
+       int error, wccflag = NFSV3_WCCRATTR, gotvp = 0, fmode = 0;
        struct mbuf *mreq, *mrep, *md, *mb, *mb2;
        int v3 = NFS_ISV3(dvp);
 
@@ -1284,6 +1284,7 @@
                fmode |= O_EXCL;
 #endif
 again:
+       error = 0;
        nfsstats.rpccnt[NFSPROC_CREATE]++;
        nfsm_reqhead(dvp, NFSPROC_CREATE, NFSX_FH(v3) + 2 * NFSX_UNSIGNED +
                nfsm_rndup(cnp->cn_namelen) + NFSX_SATTR(v3));



Home | Main Index | Thread Index | Old Index