FSCTL_IS_VOLUME_DIRTY control code
The FSCTL_IS_VOLUME_DIRTY control code determines whether the specified volume is dirty.
If the volume information file is corrupted, NTFS will return STATUS_FILE_CORRUPT_ERROR.
To perform this operation, minifilter drivers call FltFsControlFile with the following parameters, and file systems, redirectors, and legacy file system filter drivers call ZwFsControlFile with the following parameters.
FltFsControlFile only. File object pointer for the volume. This parameter must represent a user volume open of a mounted file system volume. This parameter is required and cannot be NULL.
ZwFsControlFile only. Handle for the volume. This parameter must be a handle for a user volume open of a mounted file system volume. This parameter is required and cannot be NULL.
Control code for the operation. Use FSCTL_IS_VOLUME_DIRTY for this operation.
Not used with this operation; set to NULL.
Not used with this operation; set to zero.
Pointer to a caller-allocated, 32-bit-aligned buffer that receives a ULONG bitmask of flags that indicate whether the volume is currently dirty. One or more of the flags in the following table can be set.
The volume is dirty.
This value is not currently used.
All other values
Reserved for future use.
Size, in bytes, of the buffer that is pointed to by the OutputBuffer parameter. This size must be at least sizeof(ULONG).
The file system encountered a pool allocation failure. This is an error code.
The buffer that the OutputBuffer parameter points to is NULL, or the FileHandle or FileObject parameter does not represent a user volume open. This is an error code.
The buffer that the OutputBuffer parameter points to is not large enough to hold the reparse point data, or the FileHandle or FileObject parameter does not represent a user volume open. This is an error code.
The volume is not mounted. This is an error code.
- FLT_PARAMETERS for IRP_MJ_FILE_SYSTEM_CONTROL