FILE_ATTRIBUTE_NORMAL, /* FileAttributes; ignored for open */
0, /* ShareAccess; 0 means exclusive */
FILE_OPEN, /* CreateDisposition */
- FILE_DIRECTORY_FILE, /* CreateOptions */
+ /* FILE_SYNCHRONOUS_IO_{,NON}ALERT: We need to allow W32 filesystem
+ * any waits to not to let it return STATUS_CANT_WAIT us.
+ * Alertability should have only effect on asynchronous events
+ * from KeWaitForSingleObject() by setting/clearing its parameter 'Alertable'.
+ */
+ FILE_DIRECTORY_FILE|FILE_SYNCHRONOUS_IO_ALERT, /* CreateOptions */
NULL, /* EaBuffer */
0, /* EaLength */
CreateFileTypeNone, /* CreateFileType */