TARFS 0.1.5
Read-only TAR filesystem for ESP32
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/*
2 * TARFS - Immutable (read-only) filesystem for embedded systems.
3 *
4 * Copyright (c) 2026 Viacheslav Logunov
5 * SPDX-License-Identifier: MMIT
6 *
7 * Author:
8 * Viacheslav Logunov <vvb333007@gmail.com>
9 *
10 * Project:
11 * https://github.com/vvb333007/tarfs
12 */
13
14#pragma once
15
21
22#define CONFIG_TARFS_VERSION 0x00000105
23//#define CONFIG_TARFS_LOG 1 /*!< Enable verbose logging, lots of text! for development or bug hunting */
24
25#define CONFIG_TARFS_MAX_FS 4
26#define CONFIG_TARFS_MAX_FDS 16
27
28#define CONFIG_TARFS_INTEGRITY 0
31
32#define CONFIG_TARFS_EXTMEM 1
33
34#define CONFIG_TARFS_HAVE_FDOPENDIR 1
35#define CONFIG_TARFS_HAVE_MMAP 1
36#define CONFIG_TARFS_HAVE_DUPFD 1
37#define CONFIG_TARFS_HAVE_STATVFS 1
38#define CONFIG_TARFS_HAVE_SENDFILE 1
39
40
41#define CONFIG_TARFS_COUNTERS 1
42//#define CONFIG_TARFS_BIG_ENDIAN 1 /*!< Set to 1 on bige-endian architectures */
43//#define CONFIG_TARFS_HAVE_STATVFS_H 1 /*!< If platform provides its own sys/statvfs.h, this macro shuould be uncommented */
44
45/* tarsum utility settings, please do not change */
46#ifdef TARSUM_BUILD
47# undef CONFIG_TARFS_INTEGRITY
48# undef CONFIG_TARFS_LOG
49# undef CONFIG_TARFS_HAVE_FDOPENDIR /* Incompatible with glibc targets (e.g. Linux or Cygwin)*/
50# define CONFIG_TARFS_INTEGRITY 1 /* Explicit integrity */
51# define CONFIG_TARFS_LOG 1 /* Explicit logging if building tarsum utility */
52#endif