From 0af079f2d03d1b76bd4221cb56b27091b5635fd0 Mon Sep 17 00:00:00 2001 From: Peter Scott Date: Mon, 6 Aug 2012 15:15:57 -0400 Subject: [PATCH] Windows: FSCTL_SET_PURGE_FAILURE_MODE Windows 8 adds FSCTL_SET_PURGE_FAILURE_MODE. Failure to respond with success prevents anti-virus filters from scanning the file system. For now just return success. Change-Id: Ibb4822e1a9db13912980f4100519b69f9bff9a75 Reviewed-on: http://gerrit.openafs.org/7947 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp index 6715c95589..a67e504bdc 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp @@ -683,7 +683,24 @@ AFSProcessUserFsRequest( IN PIRP Irp) break; } +#ifndef FSCTL_SET_PURGE_FAILURE_MODE +#define FSCTL_SET_PURGE_FAILURE_MODE CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 156, METHOD_BUFFERED, FILE_ANY_ACCESS) +#endif + + case FSCTL_SET_PURGE_FAILURE_MODE: + { + + // + // For the time being just succeed this call + // + + ntStatus = STATUS_SUCCESS; + + break; + } + default : + { AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING, AFS_TRACE_LEVEL_VERBOSE_2, @@ -692,6 +709,7 @@ AFSProcessUserFsRequest( IN PIRP Irp) ntStatus = STATUS_INVALID_DEVICE_REQUEST; break; + } } try_exit: