![]() |
UltraDefrag Engine Architecture - Reference Manual - Guides |
|
Functions | |
int | AllocateMap (int size) |
Allocates the cluster map. | |
int | GetMap (char *dest, int cluster_map_size) |
Retrieves the cluster map. | |
void | MarkAllSpaceAsFree0 (void) |
Marks all space in cluster map as free. | |
void | MarkAllSpaceAsSystem1 (void) |
Marks all space in cluster map as system. | |
unsigned char | GetFileSpaceState (PFILENAME pfn) |
Retrieves a space state of the file. | |
void | MarkFileSpace (PFILENAME pfn, int old_space_state) |
Remarks a range of clusters belonging to the file in the cluster map. | |
void | RemarkFileSpaceAsSystem (PFILENAME pfn) |
Remarks a range of clusters belonging to the file as system clusters in the cluster map. | |
void | RemarkBlock (ULONGLONG start, ULONGLONG len, int space_state, int old_space_state) |
Remarks a range of clusters in the cluster map. | |
void | FreeMap (void) |
Frees the cluster map. |
int AllocateMap | ( | int | size | ) |
Allocates the cluster map.
[in] | size | the number of map cells. |
Definition at line 48 of file map.c.
References FreeMap().
Referenced by udefrag_kernel_start().
int GetMap | ( | char * | dest, | |
int | cluster_map_size | |||
) |
Retrieves the cluster map.
[out] | dest | pointer to buffer receiving the map. |
[in] | cluster_map_size | the number of map cells. |
Definition at line 98 of file map.c.
Referenced by udefrag_kernel_get_statistic().
void MarkAllSpaceAsFree0 | ( | void | ) |
void MarkAllSpaceAsSystem1 | ( | void | ) |
unsigned char GetFileSpaceState | ( | PFILENAME | pfn | ) |
Retrieves a space state of the file.
[in] | pfn | pointer to the FILENAME structure containing information about the file. |
Definition at line 187 of file map.c.
References IsMft().
Referenced by DefragmentFreeSpaceLTR(), DefragmentFreeSpaceRTL(), MarkFileSpace(), MoveTheFile(), MoveTheUnfragmentedFile(), and RemarkFileSpaceAsSystem().
void MarkFileSpace | ( | PFILENAME | pfn, | |
int | old_space_state | |||
) |
Remarks a range of clusters belonging to the file in the cluster map.
[in] | pfn | pointer to the FILENAME structure containing information about the file. |
[in] | old_space_state | the previous state of the marked space. |
Definition at line 347 of file map.c.
References GetFileSpaceState(), and RemarkBlock().
Referenced by AddFile(), and BuildPaths().
void RemarkFileSpaceAsSystem | ( | PFILENAME | pfn | ) |
Remarks a range of clusters belonging to the file as system clusters in the cluster map.
[in] | pfn | pointer to the FILENAME structure containing information about the file. |
Definition at line 363 of file map.c.
References GetFileSpaceState(), and RemarkBlock().
Referenced by IsFileLocked(), and RemarkWellKnownLockedFiles().
void RemarkBlock | ( | ULONGLONG | start, | |
ULONGLONG | len, | |||
int | space_state, | |||
int | old_space_state | |||
) |
Remarks a range of clusters in the cluster map.
[in] | start | the starting cluster of the block. |
[in] | len | the length of the block, in clusters. |
[in] | space_state | the new state of the marked space. |
[in] | old_space_state | the previous state of the marked space. |
Definition at line 383 of file map.c.
References offset.
Referenced by DefragmentFreeSpaceLTR(), DefragmentFreeSpaceRTL(), MarkFileSpace(), MoveTheFile(), MoveTheUnfragmentedFile(), ProcessFreedBlock(), ProcessMftSpace(), and RemarkFileSpaceAsSystem().