From 9dc8aca710e3f7243f26b55dee4fe22a6b91e33a Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 5 Jan 2017 13:45:16 -0800 Subject: [PATCH] inc: winfsp.h: update source documentation --- inc/winfsp/winfsp.h | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/inc/winfsp/winfsp.h b/inc/winfsp/winfsp.h index e8a4d929..f6f17f28 100644 --- a/inc/winfsp/winfsp.h +++ b/inc/winfsp/winfsp.h @@ -331,15 +331,37 @@ typedef struct _FSP_FILE_SYSTEM_INTERFACE * the system sends a Cleanup request to the file system. * * There will be a Cleanup operation for every Create or Open operation posted to the user mode - * file system. However the Cleanup operation is not the final close operation on a file. The - * file system must be ready to receive additional operations until close time. This is true + * file system. However the Cleanup operation is not the final close operation on a file. + * The file system must be ready to receive additional operations until close time. This is true * even when the file is being deleted! * + * The Flags parameter contains information about the cleanup operation: + * + * + * There is no way to report failure of this operation. This is a Windows limitation. + * * As an optimization a file system may specify the FSP_FSCTL_VOLUME_PARAMS :: * PostCleanupWhenModifiedOnly flag. In this case the FSD will only post Cleanup requests when * the file was modified/deleted. @@ -352,9 +374,6 @@ typedef struct _FSP_FILE_SYSTEM_INTERFACE * The name of the file or directory to cleanup. Sent only when a Delete is requested. * @param Flags * These flags determine whether the file was modified and whether to delete the file. - * Note that there is no way to report failure of this operation. Also note that when - * this parameter has the FspCleanupDelete bit set, this is the last outstanding cleanup - * for this particular file node. * @see * Close * CanDelete @@ -536,7 +555,7 @@ typedef struct _FSP_FILE_SYSTEM_INTERFACE * directories, etc. * * This function should NEVER delete the file or directory in question. Deletion should - * happen during Cleanup with Delete==TRUE. + * happen during Cleanup with the FspCleanupDelete flag set. * * This function gets called when Win32 API's such as DeleteFile or RemoveDirectory are used. * It does not get called when a file or directory is opened with FILE_DELETE_ON_CLOSE. @@ -559,8 +578,6 @@ typedef struct _FSP_FILE_SYSTEM_INTERFACE * * The kernel mode FSD provides certain guarantees prior to posting a rename operation: *