FSCTL_IS_VOLUME_DIRTY - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

// CTL_CODE(0x0009, 0x01e, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define FSCTL_IS_VOLUME_DIRTY 0x00090078
View the official Windows hardware development documentation

NtDoc

No description available.

Windows hardware development documentation (fsctl-is-volume-dirty)

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.

Parameters

Status block

FltFsControlFile or ZwFsControlFile returns STATUS_SUCCESS if the operation succeeds. Otherwise, the appropriate function might return one of the following NTSTATUS values:

Code Meaning
STATUS_INSUFFICIENT_RESOURCES The file system encountered a pool allocation failure. This is an error code.
STATUS_INVALID_PARAMETER 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.
STATUS_INVALID_USER_BUFFER 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.
STATUS_VOLUME_DISMOUNTED The volume is not mounted. This is an error code.

Requirements

Requirement type Requirement
Header Ntifs.h (include Ntifs.h or Fltkernel.h)

See also

FLT_CALLBACK_DATA

FLT_PARAMETERS for IRP_MJ_FILE_SYSTEM_CONTROL

FltFsControlFile

IRP_MJ_FILE_SYSTEM_CONTROL

ZwFsControlFile