#include <rtl.h>
int fanalyse (
const char *drive); /* drive to analyze */
Description
The function fanalyse examines the Embedded Flash File
System and checks for file fragmentation. The parameter drive
is a string pointer denoting the drive letter.
The function is included in the RL-FlashFS library. The prototype
is defined in the file rtl.h.
The following values are allowed for the parameter
drive:
drive
Device Type
""
Default System drive as defined in
File_Config.c.
"F:" or "F0:"
Flash drive
"S:" or "S0:"
SPI Flash drive
"R:" or "R0:"
RAM drive
Return Value
A number between 0 and 255 representing the
fragmentation factor.
0 - no files are fragmented. Cannot be checked, for
example when applied upon FAT media.
255 - most files are fragmented.
If the fragmentation factor is high (above 50), consider
defragmenting the drive.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.