From: Derrick Brashear Date: Thu, 25 Sep 2008 10:02:56 +0000 (+0000) Subject: DEVEL15-disconnected-fix-ifdefing-20080925 X-Git-Tag: openafs-devel-1_5_53~19 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d1e56bf52402917f84eec200c76143a3017031f2;p=packages%2Fo%2Fopenafs.git DEVEL15-disconnected-fix-ifdefing-20080925 LICENSE IPL10 make disconnected code not be compiled in (and break) when you don't have it ena bled (cherry picked from commit 84b423e932e05bd6ffb64729900f518091f26ef1) --- diff --git a/src/afs/VNOPS/afs_vnop_create.c b/src/afs/VNOPS/afs_vnop_create.c index c89cb8887..461a4d251 100644 --- 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 */