Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ext2.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Antmicro <www.antmicro.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_FS_EXT2_H_
8#define ZEPHYR_INCLUDE_FS_EXT2_H_
9
10#include <stdint.h>
11
26struct ext2_cfg {
28 uint32_t fs_size; /* Number of blocks that we want to take. */
31 uint8_t volume_name[17]; /* If first byte is 0 then name ext2" is given. */
33};
34
35#define FS_EXT2_DECLARE_DEFAULT_CONFIG(name) \
36 static struct ext2_cfg name = { \
37 .block_size = 1024, \
38 .fs_size = 0x800000, \
39 .bytes_per_inode = 4096, \
40 .volume_name = {'e', 'x', 't', '2', '\0'}, \
41 .set_uuid = false, \
42 }
43
44
45#endif /* ZEPHYR_INCLUDE_FS_EXT2_H_ */
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Configuration used to format ext2 file system.
Definition ext2.h:26
uint32_t bytes_per_inode
Definition ext2.h:29
uint8_t volume_name[17]
Definition ext2.h:31
uint32_t block_size
Definition ext2.h:27
bool set_uuid
Definition ext2.h:32
uint32_t fs_size
Definition ext2.h:28
uint8_t uuid[16]
Definition ext2.h:30