Leaked source code of windows server 2003
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

  1. /*++
  2. Copyright (c) 1989 - 1999 Microsoft Corporation
  3. Module Name:
  4. DownLvlI.c
  5. Abstract:
  6. This module implements downlevel fileinfo, volinfo, and dirctrl.
  7. --*/
  8. #include "precomp.h"
  9. #pragma hdrstop
  10. //
  11. // The local debug trace level
  12. //
  13. RXDT_DefineCategory(DOWNLVLI);
  14. #define Dbg (DEBUG_TRACE_DOWNLVLI)
  15. NTSTATUS
  16. NulMRxTruncateFile(
  17. IN OUT struct _RX_CONTEXT * RxContext,
  18. IN OUT PLARGE_INTEGER pNewFileSize,
  19. OUT PLARGE_INTEGER pNewAllocationSize
  20. )
  21. /*++
  22. Routine Description:
  23. This routine handles requests to truncate the file
  24. Arguments:
  25. RxContext - the RDBSS context
  26. Return Value:
  27. NTSTATUS - The return status for the operation
  28. --*/
  29. {
  30. NTSTATUS Status = STATUS_SUCCESS;
  31. RxCaptureFcb;
  32. NulMRxGetFcbExtension(capFcb,pFcbExtension);
  33. PMRX_NET_ROOT pNetRoot = capFcb->pNetRoot;
  34. NulMRxGetNetRootExtension(pNetRoot,pNetRootExtension);
  35. RxTraceEnter("NulMRxTruncateFile");
  36. RxDbgTrace(0, Dbg, ("NewFileSize is %d\n", pNewFileSize->LowPart));
  37. RxTraceLeave(Status);
  38. return Status;
  39. }
  40. NTSTATUS
  41. NulMRxExtendFile(
  42. IN OUT struct _RX_CONTEXT * RxContext,
  43. IN OUT PLARGE_INTEGER pNewFileSize,
  44. OUT PLARGE_INTEGER pNewAllocationSize
  45. )
  46. /*++
  47. Routine Description:
  48. This routine handles requests to extend the file for cached IO.
  49. Arguments:
  50. RxContext - the RDBSS context
  51. Return Value:
  52. NTSTATUS - The return status for the operation
  53. --*/
  54. {
  55. NTSTATUS Status = STATUS_SUCCESS;
  56. RxCaptureFcb;
  57. NulMRxGetFcbExtension(capFcb,pFcbExtension);
  58. PMRX_NET_ROOT pNetRoot = capFcb->pNetRoot;
  59. NulMRxGetNetRootExtension(pNetRoot,pNetRootExtension);
  60. RxTraceEnter("NulMRxExtendFile");
  61. RxDbgTrace(0, Dbg, ("NewFileSize is %d\n", pNewFileSize->LowPart));
  62. RxTraceLeave(Status);
  63. return Status;
  64. }