From: Jeffrey Altman Date: Sun, 14 Apr 2013 22:57:53 +0000 (-0400) Subject: Windows: AFSRedirLib AFSIgnoreReparsePointToFile X-Git-Tag: upstream/1.8.0_pre1^2~1183 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f782d1dd20ee6048ca165e808adc9a01b2666746;p=packages%2Fo%2Fopenafs.git Windows: AFSRedirLib AFSIgnoreReparsePointToFile AFSIgnoreReparsePointToFile() is a helper routine that uses the global reparse point policy to decide whether or not a reparse point whose target is a file should be reported to applications as a file. When per-AuthGroup or per-Process policy is supported, this function should be modified. Change-Id: Ifa1b82f92859ede1cef311680ff93a1e38a81a6d Reviewed-on: http://gerrit.openafs.org/9788 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp b/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp index 8239fea89..5bf3ef2c9 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp @@ -9515,3 +9515,18 @@ AFSPerformObjectInvalidate( IN AFSObjectInfoCB *ObjectInfo, return ntStatus; } + +BOOLEAN +AFSIgnoreReparsePointToFile( void) +{ + AFSDeviceExt *pDeviceExt = (AFSDeviceExt *)AFSRDRDeviceObject->DeviceExtension; + BOOLEAN bIgnoreReparsePoint; + + { + + bIgnoreReparsePoint = BooleanFlagOn( pDeviceExt->Specific.RDR.ReparsePointPolicy, + AFS_REPARSE_POINT_TO_FILE_AS_FILE); + } + + return bIgnoreReparsePoint; +} diff --git a/src/WINNT/afsrdr/kernel/lib/Include/AFSCommon.h b/src/WINNT/afsrdr/kernel/lib/Include/AFSCommon.h index 6cb2d45d1..fd9108194 100644 --- a/src/WINNT/afsrdr/kernel/lib/Include/AFSCommon.h +++ b/src/WINNT/afsrdr/kernel/lib/Include/AFSCommon.h @@ -1446,6 +1446,9 @@ NTSTATUS AFSPerformObjectInvalidate( IN AFSObjectInfoCB *ObjectInfo, IN ULONG InvalidateReason); +BOOLEAN +AFSIgnoreReparsePointToFile( void); + // // AFSNameArray.cpp Prototypes //