Zephyr Project API 4.4.99
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
12
13#ifndef ZEPHYR_INCLUDE_FS_EXT2_H_
14#define ZEPHYR_INCLUDE_FS_EXT2_H_
15
16#include <stdint.h>
17
46
51#define FS_EXT2_DECLARE_DEFAULT_CONFIG(name) \
52 static struct ext2_cfg name = { \
53 .block_size = 1024, \
54 .fs_size = 0x800000, \
55 .bytes_per_inode = 4096, \
56 .volume_name = {'e', 'x', 't', '2', '\0'}, \
57 .set_uuid = false, \
58 }
59
60
61#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:24
uint32_t bytes_per_inode
Requested amount of memory per inode, in bytes.
Definition ext2.h:34
uint32_t block_size
Requested size of block, in bytes.
Definition ext2.h:26
bool set_uuid
If true then the UUID from UUID is used in the created file system.
Definition ext2.h:44
uint32_t fs_size
Requested size of file system, as a number of blocks.
Definition ext2.h:30
uint8_t uuid[16]
UUID for the created file system.
Definition ext2.h:36
uint8_t volume_name[16]
Name for the created file system.
Definition ext2.h:40