From 94e9fceaa7ec343717b3fdc8610381832f532ebf Mon Sep 17 00:00:00 2001 From: Peter Scott Date: Mon, 31 Oct 2011 18:05:31 -0400 Subject: [PATCH] Windows: log FSCTL_CSC_INTERNAL requests FSCTL_CSC_INTERNAL requests are not supported and will return STATUS_INVALID_DEVICE_REQUEST. However, log them for easier debugging. FSCTL_CSC_INTERNAL is defined in ntifs.h only for Vista and above. Since afsredir is built for XP and above its value must be conditionally defined by us. Change-Id: I39cf1f9d068d28ab6c9267c302d49feece6af700 Reviewed-on: http://gerrit.openafs.org/5773 Reviewed-by: Rod Widdowson Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp index 05cda83a53..546cd0e337 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp @@ -284,6 +284,20 @@ AFSProcessUserFsRequest( IN PIRP Irp) break; } +#ifndef FSCTL_CSC_INTERNAL +#define FSCTL_CSC_INTERNAL CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 107, METHOD_NEITHER, FILE_ANY_ACCESS) +#endif + case FSCTL_CSC_INTERNAL: + { + AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING, + AFS_TRACE_LEVEL_VERBOSE_2, + "AFSProcessUserFsRequest Processing FSCTL_CSC_INTERNAL request\n"); + + ntStatus = STATUS_INVALID_DEVICE_REQUEST; + + break; + } + case FSCTL_GET_REPARSE_POINT: {