FS_CFG

typedef struct fs_cfg {
    FS_QTY DevCnt; 
    FS_QTY VolCnt; 
    FS_QTY FileCnt; 
    FS_QTY DirCnt; 
    FS_QTY BufCnt; 
    FS_QTY DevDrvCnt; 
    FS_SEC_SIZE MaxSecSize; 
  } FS_CFG;

File

Used for

fs.h

First argument of FS_Init()

A pointer to a FS_CFG structure is the argument of FS_Init(). It configures the number of devices, files and other objects in the file system suite.

Members

DevCnt

The maximum number of devices that can be open simultaneously. must be greater than or equal to 1.

VolCnt

The maximum number of volumes that can be open simultaneously. must be greater than or equal to 1.

FileCnt

The maximum number of files that can be open simultaneously. must be greater than or equal to 1.

DirCnt

Maximum number of directories that can be open simultaneously. If DirCnt is 0, the directory module functions will be blocked after successful initialization, and the file system will operate as if compiled with directory support disabled. If directory support is disabled, DirCnt is ignored; otherwise, if directories will be used, DirCnt should be greater than or equal to 1.

BufCnt

Maximum number of buffers that can be used successfully. The minimum necessary BufCnt can be calculated from the number of volumes:

BufCnt >= VolCnt * 2

If FSEntry_Copy() or FSEntry_Rename() is used, then up to one additional buffer for each volume may be necessary.

DevDrvCnt

Maximum number of device drivers that can be added. It must be greater than or equal to 1.

MaxSecSize

Maximum sector size, in octets. It must be 512, 1024, 2048 or 4096. No device with a sector size larger than MaxSecSize can be opened.

Notes

None.