You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
1.9 KiB
94 lines
1.9 KiB
/*++
|
|
|
|
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;
|
|
}
|
|
|