![]() |
UltraDefrag Engine Architecture - Reference Manual - Guides |
|
Functions | |
int | Analyze (char *volume_name) |
Performs a volume analysis. | |
BOOLEAN | IsFileLocked (PFILENAME pfn) |
Checks is file locked or not. | |
BOOLEAN | IsMft (PFILENAME pfn) |
Checks whether the file is $MFT or not. | |
BOOLEAN | IsWellKnownSystemFile (PFILENAME pfn) |
Checks is file a well known system file or not. | |
void | RemarkWellKnownLockedFiles (void) |
Remarks space belonging to well known locked files as system. | |
void | CheckAllFragmentedFiles (void) |
Checks all fragmented files, are they locked or not. | |
void | CheckAllFiles (void) |
Checks all files, are they locked or not. | |
void | GenerateFragmentedFilesList (void) |
Produces a list of fragmented files. | |
ULONGLONG | _rdtsc (void) |
Returns the current time in milliseconds since... | |
ULONGLONG | _rdtsc_1 (void) |
Returns the current time in nanoseconds since... |
int Analyze | ( | char * | volume_name | ) |
Performs a volume analysis.
[in] | volume_name | the name of the volume. |
Definition at line 58 of file analyse.c.
References _rdtsc(), CheckForNtfsPartition(), CheckForStopEvent(), DestroyLists(), FillFreeSpaceMap(), FindFiles(), FlushAllFileBuffers(), GenerateFragmentedFilesList(), GetDriveGeometry(), MarkAllSpaceAsFree0(), MarkAllSpaceAsSystem1(), OpenVolume(), RemarkWellKnownLockedFiles(), and ScanMFT().
Referenced by OptimizationRoutine(), and udefrag_kernel_start().
BOOLEAN IsFileLocked | ( | PFILENAME | pfn | ) |
Checks is file locked or not.
[in,out] | pfn | pointer to structure describing the file. |
Definition at line 188 of file analyse.c.
References OpenTheFile(), and RemarkFileSpaceAsSystem().
Referenced by CheckAllFiles(), CheckAllFragmentedFiles(), Defragment(), DefragmentFreeSpaceLTR(), DefragmentFreeSpaceRTL(), MoveAllFilesRTL(), and Optimize().
BOOLEAN IsMft | ( | PFILENAME | pfn | ) |
Checks whether the file is $MFT or not.
[in] | pfn | pointer to structure describing the file. |
Definition at line 234 of file analyse.c.
Referenced by GetFileSpaceState(), and IsWellKnownSystemFile().
BOOLEAN IsWellKnownSystemFile | ( | PFILENAME | pfn | ) |
Checks is file a well known system file or not.
[in] | pfn | pointer to structure describing the file. |
Definition at line 268 of file analyse.c.
References IsMft().
Referenced by RemarkWellKnownLockedFiles().
void RemarkWellKnownLockedFiles | ( | void | ) |
Remarks space belonging to well known locked files as system.
Definition at line 326 of file analyse.c.
References _rdtsc(), IsWellKnownSystemFile(), OpenTheFile(), and RemarkFileSpaceAsSystem().
Referenced by Analyze().
void CheckAllFragmentedFiles | ( | void | ) |
Checks all fragmented files, are they locked or not.
Definition at line 368 of file analyse.c.
References _rdtsc(), and IsFileLocked().
void CheckAllFiles | ( | void | ) |
Checks all files, are they locked or not.
Definition at line 397 of file analyse.c.
References _rdtsc(), and IsFileLocked().
ULONGLONG _rdtsc | ( | void | ) |
Returns the current time in milliseconds since...
Definition at line 443 of file analyse.c.
References _rdtsc_1().
Referenced by Analyze(), BuildPaths(), CheckAllFiles(), CheckAllFragmentedFiles(), ReadSectors(), RemarkWellKnownLockedFiles(), SaveReportToDisk(), and ScanMFT().