git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b5a6e4b
)
disconnected-fix-ifdefing-20080925
author
Derrick Brashear
<shadow@dementia.org>
Thu, 25 Sep 2008 10:02:23 +0000 (10:02 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Thu, 25 Sep 2008 10:02:23 +0000 (10:02 +0000)
LICENSE IPL10
make disconnected code not be compiled in (and break) when you don't have it enabled
src/afs/VNOPS/afs_vnop_create.c
patch
|
blob
|
history
diff --git
a/src/afs/VNOPS/afs_vnop_create.c
b/src/afs/VNOPS/afs_vnop_create.c
index
c89cb88
..
461a4d2
100644
(file)
--- a/
src/afs/VNOPS/afs_vnop_create.c
+++ b/
src/afs/VNOPS/afs_vnop_create.c
@@
-362,11
+362,12
@@
afs_create(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
}
} else {
-
+#if defined(AFS_DISCON_ENV)
/* Generate a fake FID for disconnected mode. */
newFid.Cell = adp->fid.Cell;
newFid.Fid.Volume = adp->fid.Fid.Volume;
afs_GenFakeFid(&newFid, VREG);
+#endif
} /* if (!AFS_IS_DISCON_RW) */
/* otherwise, we should see if we can make the change to the dir locally */