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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
Peter Scott 2012-08-06 15:15:57 -04:00 committed by Jeffrey Altman
parent 831763ce66
commit 0af079f2d0

View File

@ -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,
@ -693,6 +710,7 @@ AFSProcessUserFsRequest( IN PIRP Irp)
break;
}
}
try_exit: