Zephyr API Documentation 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
7#ifndef ZEPHYR_INCLUDE_FS_EXT2_H_
8#define ZEPHYR_INCLUDE_FS_EXT2_H_
9
10#include <stdint.h>
11
40
41#define FS_EXT2_DECLARE_DEFAULT_CONFIG(name) \
42 static struct ext2_cfg name = { \
43 .block_size = 1024, \
44 .fs_size = 0x800000, \
45 .bytes_per_inode = 4096, \
46 .volume_name = {'e', 'x', 't', '2', '\0'}, \
47 .set_uuid = false, \
48 }
49
50
51#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:18
uint32_t bytes_per_inode
Requested amount of memory per inode, in bytes.
Definition ext2.h:28
uint32_t block_size
Requested size of block, in bytes.
Definition ext2.h:20
bool set_uuid
If true then the UUID from UUID is used in the created file system.
Definition ext2.h:38
uint32_t fs_size
Requested size of file system, as a number of blocks.
Definition ext2.h:24
uint8_t uuid[16]
UUID for the created file system.
Definition ext2.h:30
uint8_t volume_name[16]
Name for the created file system.
Definition ext2.h:34