mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
831763ce66
commit
0af079f2d0
@ -683,7 +683,24 @@ AFSProcessUserFsRequest( IN PIRP Irp)
|
|||||||
break;
|
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 :
|
default :
|
||||||
|
{
|
||||||
|
|
||||||
AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING,
|
AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING,
|
||||||
AFS_TRACE_LEVEL_VERBOSE_2,
|
AFS_TRACE_LEVEL_VERBOSE_2,
|
||||||
@ -692,6 +709,7 @@ AFSProcessUserFsRequest( IN PIRP Irp)
|
|||||||
ntStatus = STATUS_INVALID_DEVICE_REQUEST;
|
ntStatus = STATUS_INVALID_DEVICE_REQUEST;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try_exit:
|
try_exit:
|
||||||
|
Loading…
Reference in New Issue
Block a user