Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ext2_cfg Struct Reference

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

#include <zephyr/fs/ext2.h>

Data Fields

uint32_t block_size
 Requested size of block, in bytes.
uint32_t fs_size
 Requested size of file system, as a number of blocks.
uint32_t bytes_per_inode
 Requested amount of memory per inode, in bytes.
uint8_t uuid [16]
 UUID for the created file system.
uint8_t volume_name [16]
 Name for the created file system.
bool set_uuid
 If true then the UUID from UUID is used in the created file system.

Detailed Description

Configuration used to format ext2 file system.

If a field is set to 0 then its default value is used. (For the volume name, the first byte of the array must be 0 to use the default value.)

Field Documentation

◆ block_size

uint32_t ext2_cfg::block_size

Requested size of block, in bytes.

◆ bytes_per_inode

uint32_t ext2_cfg::bytes_per_inode

Requested amount of memory per inode, in bytes.

It is used to calculate the number of inodes in the created file system.

◆ fs_size

uint32_t ext2_cfg::fs_size

Requested size of file system, as a number of blocks.

If 0 then the whole available memory is used.

◆ set_uuid

bool ext2_cfg::set_uuid

If true then the UUID from UUID is used in the created file system.

If false then a version 4 UUID is generated.

◆ uuid

uint8_t ext2_cfg::uuid[16]

UUID for the created file system.

Used only when set_uuid is true.

◆ volume_name

uint8_t ext2_cfg::volume_name[16]

Name for the created file system.

If the first byte is 0 then the default name "ext2" is used.


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