ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
fds_stat_t Struct Reference

File system statistics. More...

#include <fds.h>

Data Fields

uint16_t pages_available
 The number of pages available. More...
 
uint16_t open_records
 The number of open records. More...
 
uint16_t valid_records
 The number of valid records. More...
 
uint16_t dirty_records
 The number of deleted ("dirty") records. More...
 
uint16_t words_reserved
 The number of words reserved by fds_reserve(). More...
 
uint16_t words_used
 The number of words written to flash, including those reserved for future writes. More...
 
uint16_t largest_contig
 The largest number of free contiguous words in the file system. More...
 
uint16_t freeable_words
 The largest number of words that can be reclaimed by garbage collection. More...
 
bool corruption
 Filesystem corruption has been detected. More...
 

Detailed Description

File system statistics.

Definition at line 233 of file fds.h.

Field Documentation

◆ corruption

bool corruption

Filesystem corruption has been detected.

One or more corrupted records were detected. FDS will heal the filesystem automatically next time garbage collection is run, but some data may be lost.

Note
: This flag is unrelated to CRC failures.

Definition at line 265 of file fds.h.

◆ dirty_records

uint16_t dirty_records

The number of deleted ("dirty") records.

Definition at line 238 of file fds.h.

◆ freeable_words

uint16_t freeable_words

The largest number of words that can be reclaimed by garbage collection.

The actual amount of space freed by garbage collection might be less than this value if records are open while garbage collection is run.

Definition at line 256 of file fds.h.

◆ largest_contig

uint16_t largest_contig

The largest number of free contiguous words in the file system.

This number indicates the largest record that can be stored by FDS. It takes into account all reservations for future writes.

Definition at line 249 of file fds.h.

◆ open_records

uint16_t open_records

The number of open records.

Definition at line 236 of file fds.h.

◆ pages_available

uint16_t pages_available

The number of pages available.

Definition at line 235 of file fds.h.

◆ valid_records

uint16_t valid_records

The number of valid records.

Definition at line 237 of file fds.h.

◆ words_reserved

uint16_t words_reserved

The number of words reserved by fds_reserve().

Definition at line 239 of file fds.h.

◆ words_used

uint16_t words_used

The number of words written to flash, including those reserved for future writes.

Definition at line 242 of file fds.h.


The documentation for this struct was generated from the following file: