DCMD_ETFS_FLUSH_COUNT
Flush the .badblks and .counts files for an embedded transaction filesystem
Synopsis:
#include <sys/dcmd_mem.h>
#define DCMD_ETFS_FLUSH_COUNT __DION(_DCMD_MEM, 107)
Arguments to devctl():
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device |
| dcmd | DCMD_ETFS_FLUSH_COUNT |
| dev_data_ptr | NULL |
| n_bytes | 0 |
| dev_info_ptr | NULL |
Description:
This command causes these files to be written on the device:
- .badblks
- A list of the bad blocks.
- .counts
- An array of the blocks showing the read and erase counts, used in wear leveling.
Input:
None.
Output:
None.
See also:
devctl() in the QNX Neutrino C Library Reference
etfsctl, fs-etfs-ram in the Utilities Reference
Page updated:
