ClfsGetIoStatistics function

The ClfsGetIoStatistics routine returns I/O statistics for a specified CLFS log.

Syntax

CLFSUSER_API NTSTATUS ClfsGetIoStatistics(
  PLOG_FILE_OBJECT   plfoLog,
  PVOID              pvStatsBuffer,
  ULONG              cbStatsBuffer,
  CLFS_IOSTATS_CLASS eStatsClass,
  PULONG             pcbStatsWritten
);

Parameters

plfoLog

A pointer to a LOG_FILE_OBJECT structure that represents a CLFS stream. The I/O statistics will be collected for the stream's underlying log on stable storage. The caller previously obtained this pointer by calling ClfsCreateLogFile.

pvStatsBuffer

A pointer to a CLFS_IO_STATISTICS structure that receives the I/O statistics data.

cbStatsBuffer

The size, in bytes, of the buffer pointed to by pvStatsBuffer. This parameter must be at least sizeof(CLFS_IO_STATISTICS_HEADER). If this parameter is less than sizeof(CLFS_IO_STATISTICS), pvStatsBuffer will receive only a portion of the available I/O statistics.

eStatsClass

This parameter is reserved for future use.

pcbStatsWritten

A pointer to a ULONG-typed variable that receives the number of bytes actually written to pvStatsBuffer. This parameter can be NULL.

Return Value

ClfsGetIoStatistics returns STATUS_SUCCESS if it succeeds; otherwise, it returns one of the error codes defined in Ntstatus.h.

Remarks

For an explanation of CLFS concepts and terminology, see Common Log File System.

Requirements

   
Windows version Available in Windows Server 2003 R2, Windows Vista, and later versions of Windows.
Target Platform Desktop
Header wdm.h (include Wdm.h)
Library Clfs.lib
DLL Clfs.sys
IRQL "<= APC_LEVEL"

See Also

ClfsCreateLogFile