CcIsThereDirtyLoggedPages

CcIsThereDirtyLoggedPages routine

The CcIsThereDirtyLoggedPages routine determines whether a volume contains any files that have dirty log data in the system cache.

Syntax


BOOLEAN CcIsThereDirtyLoggedPages(
  _In_     PDEVICE_OBJECT DeviceObject,
  _In_opt_ PULONG         NumberOfDirtyPages
);

Parameters

DeviceObject [in]

A pointer to a device object associated with the volume to check.

NumberOfDirtyPages [in, optional]

An optional pointer to an ULONG buffer that receives the number of dirty log pages on the volume associated with DeviceObject.

Return value

The CcIsThereDirtyLoggedPages routine returns TRUE if the volume contains one or more cached files whose log data has been modified in the cache, but not yet flushed to disk. Otherwise, this routine returns FALSE.

Remarks

This routine will return TRUE if any dirty log pages exist. It will also return TRUE if there are any log pages currently queued to the volume.

Unlike CcIsThereDirtyDataEx, the CcIsThereDirtyLoggedPages routine uses a file system device object to locate the volume cache information to check for dirty log pages.

Requirements

Target platform

Universal

Version

Available in Windows 8 and later versions of Windows.

Header

Ntifs.h (include Ntifs.h or FltKernel.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

PASSIVE_LEVEL

See also

CcFlushCache
CcPurgeCacheSection
CcIsThereDirtyDataEx

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft