Export (0) Print
Expand All

ClfsAlignReservedLog routine

The ClfsAlignReservedLog routine calculates the size of the space that must be reserved for a specified set of records. The size calculation includes the space required for headers and the space required for sector alignment.

Syntax


NTSTATUS  ClfsAlignReservedLog(
  _In_  PVOID     pvMarshalContext,
  _In_  ULONG     cRecords,
  _In_  LONGLONG  rgcbReservation[],
  _Out_ PLONGLONG pcbAlignReservation
);

Parameters

pvMarshalContext [in]

A pointer to an opaque context that represents a marshalling area associated with a CLFS stream. The caller previously obtained this pointer by calling ClfsCreateMarshallingArea.

cRecords [in]

The number of elements in the array pointed to by rgcbReservation.

rgcbReservation [in]

A pointer to an array of LONGLONG-typed variables that supplies a list of record sizes (in bytes).

pcbAlignReservation [out]

A pointer to a LONGLONG-typed variable that receives the size, in bytes, of the required reservation.

Return value

ClfsAlignReservedLog 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

Target platform

Desktop

Version

Available in Windows Server 2003 R2, Windows Vista, and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Clfs.lib

DLL

Clfs.sys

IRQL

<= APC_LEVEL

See also

ClfsAllocReservedLog

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft