Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ext2_cfg Struct Reference

Configuration used to format ext2 file system. More...

#include <ext2.h>

Data Fields

uint32_t block_size
 
uint32_t fs_size
 
uint32_t bytes_per_inode
 
uint8_t uuid [16]
 
uint8_t volume_name [17]
 
bool set_uuid
 

Detailed Description

Configuration used to format ext2 file system.

If a field is set to 0 then default value is used. (In volume name the first cell of an array must be 0 to use default value.)

Parameters
block_sizeRequested size of block.
fs_sizeRequested size of file system. If 0 then whole available memory is used.
bytes_per_inodeRequested memory for one inode. It is used to calculate number of inodes in created file system.
uuidUUID for created file system. Used when set_uuid is true.
volume_nameName for created file system.
set_uuidIf true then UUID from that structure is used in created file system. If false then UUID (ver4) is generated.

Field Documentation

◆ block_size

uint32_t ext2_cfg::block_size

◆ bytes_per_inode

uint32_t ext2_cfg::bytes_per_inode

◆ fs_size

uint32_t ext2_cfg::fs_size

◆ set_uuid

bool ext2_cfg::set_uuid

◆ uuid

uint8_t ext2_cfg::uuid[16]

◆ volume_name

uint8_t ext2_cfg::volume_name[17]

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