2025-04-27 07:49:33 -04:00

95 lines
1.9 KiB
C

/*++
Copyright (c) 1989 - 1999 Microsoft Corporation
Module Name:
DownLvlI.c
Abstract:
This module implements downlevel fileinfo, volinfo, and dirctrl.
--*/
#include "precomp.h"
#pragma hdrstop
//
// The local debug trace level
//
RXDT_DefineCategory(DOWNLVLI);
#define Dbg (DEBUG_TRACE_DOWNLVLI)
NTSTATUS
NulMRxTruncateFile(
IN OUT struct _RX_CONTEXT * RxContext,
IN OUT PLARGE_INTEGER pNewFileSize,
OUT PLARGE_INTEGER pNewAllocationSize
)
/*++
Routine Description:
This routine handles requests to truncate the file
Arguments:
RxContext - the RDBSS context
Return Value:
NTSTATUS - The return status for the operation
--*/
{
NTSTATUS Status = STATUS_SUCCESS;
RxCaptureFcb;
NulMRxGetFcbExtension(capFcb,pFcbExtension);
PMRX_NET_ROOT pNetRoot = capFcb->pNetRoot;
NulMRxGetNetRootExtension(pNetRoot,pNetRootExtension);
RxTraceEnter("NulMRxTruncateFile");
RxDbgTrace(0, Dbg, ("NewFileSize is %d\n", pNewFileSize->LowPart));
RxTraceLeave(Status);
return Status;
}
NTSTATUS
NulMRxExtendFile(
IN OUT struct _RX_CONTEXT * RxContext,
IN OUT PLARGE_INTEGER pNewFileSize,
OUT PLARGE_INTEGER pNewAllocationSize
)
/*++
Routine Description:
This routine handles requests to extend the file for cached IO.
Arguments:
RxContext - the RDBSS context
Return Value:
NTSTATUS - The return status for the operation
--*/
{
NTSTATUS Status = STATUS_SUCCESS;
RxCaptureFcb;
NulMRxGetFcbExtension(capFcb,pFcbExtension);
PMRX_NET_ROOT pNetRoot = capFcb->pNetRoot;
NulMRxGetNetRootExtension(pNetRoot,pNetRootExtension);
RxTraceEnter("NulMRxExtendFile");
RxDbgTrace(0, Dbg, ("NewFileSize is %d\n", pNewFileSize->LowPart));
RxTraceLeave(Status);
return Status;
}