MRxZeroExtend routine

The MRxZeroExtend routine is called by RDBSS to request that a network mini-redirector truncate the contents of a file system object.

Syntax

PMRX_CALLDOWN MRxZeroExtend;

NTSTATUS MRxZeroExtend(
  _Inout_ PRX_CONTEXT RxContext
)
{ ... }

Parameters

RxContext [in, out]
A pointer to the RX_CONTEXT structure. This parameter contains the IRP that is requesting the operation.

Return value

MRxZeroExtend returns STATUS_SUCCESS on success or an appropriate NTSTATUS value, such as the following:

Return code Description
STATUS_NOT_IMPLEMENTED

This routine is not implemented.

Remarks

MRxZeroExtend is called as part of cleanup operations if the file object was not marked for deletion and the file object is not a paging file. MRxZeroExtend is called to ensure that the portion between the valid data length and the file size is zero-extended. After calling MRxZeroExtend, RDBSS sets the Header.ValidDataLength.QuadPart member of the structure of an FCB structure equal to the Header.FileSize.QuadPart member of the FCB structure.

A call to MRxZeroExtend will be followed by a call to MRxCleanupFobx as part of the cleanup operation.

RDBSS ignores the return value from MRxZeroExtend.

Requirements

Target platform

Desktop

Header

Mrx.h (include Mrx.h)

See also

MRxAreFilesAliased

MRxCleanupFobx

MRxCloseSrvOpen

MRxCollapseOpen

MRxCreate

MRxDeallocateForFcb

MRxDeallocateForFobx

MRxExtendForCache

MRxExtendForNonCache

MRxFlush

MRxForceClosed

MRxIsLockRealizable

MRxShouldTryToCollapseThisOpen

MRxTruncate