From: Derrick Brashear Date: Thu, 25 Sep 2008 10:02:23 +0000 (+0000) Subject: disconnected-fix-ifdefing-20080925 X-Git-Tag: openafs-devel-1_5_61~808 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=84b423e932e05bd6ffb64729900f518091f26ef1 disconnected-fix-ifdefing-20080925 LICENSE IPL10 make disconnected code not be compiled in (and break) when you don't have it enabled --- diff --git a/src/afs/VNOPS/afs_vnop_create.c b/src/afs/VNOPS/afs_vnop_create.c index c89cb88..461a4d2 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 */