UltraDefrag Engine Logo UltraDefrag Engine

Architecture - Reference Manual - Guides

File Dumping

Functions

NTSTATUS OpenTheFile (PFILENAME pfn, HANDLE *phFile)
 Opens a file.
BOOLEAN DumpFile (PFILENAME pfn)
 Dumps a cluster chains of the file.

Function Documentation

NTSTATUS OpenTheFile ( PFILENAME  pfn,
HANDLE *  phFile 
)

Opens a file.

Parameters:
[in] pfn pointer to the FILENAME structure containing information about the file.
[out] phFile pointer to a variable receiving the handle of the opened file.
Returns:
An appropriate NTSTATUS code.

Definition at line 37 of file filedump.c.

Referenced by DumpFile(), IsFileLocked(), MovePartOfFileBlock(), MoveTheFile(), MoveTheUnfragmentedFile(), and RemarkWellKnownLockedFiles().

BOOLEAN DumpFile ( PFILENAME  pfn  ) 

Dumps a cluster chains of the file.

Parameters:
[in] pfn pointer to the FILENAME structure containing information about the file.
Returns:
Boolean value indicating the file dumping result: TRUE for success, FALSE otherwise.
Note:
  • On NTFS volumes all files smaller then 1 kb are placed in MFT. We are excluding them from the defragmentation process.
  • On NTFS we are skipping the 0-filled virtual clusters of the compressed files.
  • This function must never modify global statistical counters.

Definition at line 67 of file filedump.c.

References CheckForStopEvent(), and OpenTheFile().

Referenced by AddFile(), and MoveTheFile().


Generated on Sat May 29 23:06:46 2010 for UltraDefrag Engine by doxygen 1.6.2