inc: fsctl: PostCleanupOnDeleteOnly

This commit is contained in:
Bill Zissimopoulos
2016-09-21 14:22:08 -07:00
parent 3ce490d405
commit aed134080c
5 changed files with 26 additions and 11 deletions

View File

@ -146,7 +146,9 @@ typedef struct
UINT32 HardLinks:1; /* unimplemented; set to 0 */
UINT32 ExtendedAttributes:1; /* unimplemented; set to 0 */
UINT32 ReadOnlyVolume:1;
UINT32 KmReservedFlags:6;
/* kernel-mode flags */
UINT32 PostCleanupOnDeleteOnly:1; /* post Cleanup when deleting a file only */
UINT32 KmReservedFlags:5;
/* user-mode flags */
UINT32 UmFileNodeIsUserContext2:1; /* user mode: FileNode parameter is UserContext2 */
UINT32 UmReservedFlags:15;

View File

@ -318,6 +318,10 @@ typedef struct _FSP_FILE_SYSTEM_INTERFACE
* tested to see if the delete can proceed and if the answer is positive the file is then
* deleted during Cleanup.
*
* As an optimization a file system may specify the FSP_FSCTL_VOLUME_PARAMS ::
* PostCleanupOnDeleteOnly flag. In this case the FSD will only post Cleanup requests when a
* file is being deleted.
*
* @param FileSystem
* The file system on which this request is posted.
* @param Request