]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-uae-translate-create-20061013
authorDerrick Brashear <shadow@dementia.org>
Fri, 13 Oct 2006 06:12:51 +0000 (06:12 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 13 Oct 2006 06:12:51 +0000 (06:12 +0000)
really the stubs should probably just translate the codes back. maybe for 1.6

(cherry picked from commit 0e8238e7cb90c022ec126c05987d8258197a413a)

src/afs/VNOPS/afs_vnop_create.c

index 1997970440f1eec000cc7098bbe91cadc9adf2b7..fbb33fc2738d42fbe0245b4c66bb4793340ccb5c 100644 (file)
@@ -25,6 +25,7 @@ RCSID
 #include "afs/afs_cbqueue.h"
 #include "afs/nfsclient.h"
 #include "afs/afs_osidnlc.h"
+#include "afs/unified_afs.h"
 
 /* question: does afs_create need to set CDirty in the adp or the avc?
  * I think we can get away without it, but I'm not sure.  Note that
@@ -305,7 +306,7 @@ afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
             (tc, code, &adp->fid, &treq, AFS_STATS_FS_RPCIDX_CREATEFILE,
              SHARED_LOCK, NULL));
 
-    if (code == EEXIST &&
+    if ((code == EEXIST || code == UAEEXIST) &&
 #ifdef AFS_SGI64_ENV
     !(flags & VEXCL)
 #else /* AFS_SGI64_ENV */