/Zephyr-latest/subsys/fs/ |
D | fs_impl.h | 4 * SPDX-License-Identifier: Apache-2.0 19 * @brief Strip the mount point prefix from a path. 21 * @param path an absolute path beginning with a mount point. 23 * @param mp a pointer to the mount point within which @p path is found 25 * @return the absolute path within the mount point. Behavior is 26 * undefined if @p path does not start with the mount point prefix.
|
D | fs.c | 4 * Copyright (c) 2020-2024 Nordic Semiconductor ASA 6 * SPDX-License-Identifier: Apache-2.0 27 /* lock to protect mount list operations */ 30 /* Maps an identifier used in mount points to the file system 41 ep->fstp = NULL; in registry_clear_entry() 47 int rv = -ENOSPC; in registry_add() 52 if (ep->fstp == NULL) { in registry_add() 53 ep->type = type; in registry_add() 54 ep->fstp = fstp; in registry_add() 68 if ((ep->fstp != NULL) && (ep->type == type)) { in registry_find() [all …]
|
D | Kconfig.fatfs | 4 # SPDX-License-Identifier: Apache-2.0 19 bool "Read-only support for all volumes" 22 Select this when using FAT for read-only access to slightly 46 destroy your disk, if mount attempt fails. In case when your 78 FIL is defined in ff.h of ELM FAT driver, and is pre-allocated 79 at compile-time. 88 DIR is defined in ff.h of ELM FAT driver, and is pre-allocated 89 at compile-time. 131 Enable LFN with static working buffer on the BSS. Always NOT thread-safe. 177 437 - U.S. [all …]
|
/Zephyr-latest/dts/bindings/fs/ |
D | zephyr,fstab-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 mount-point: 13 The absolute path used as the file system mount point. 24 Mount file system on boot if present. 26 During initialization the file system driver will attempt to mount 29 read-only: 32 Mount file system read-only if present. 35 mount descriptor generated for the file system. 37 no-format: 40 Do not format file system if mount fails. [all …]
|
/Zephyr-latest/doc/services/file_system/ |
D | index.rst | 6 Zephyr RTOS Virtual Filesystem Switch (VFS) allows applications to mount multiple 7 file systems at different mount points (e.g., ``/fatfs`` and ``/lfs``). The 8 mount point data structure contains all the necessary information required 9 to instantiate, mount, and operate on a file system. The File system Switch 17 :c:enumerator:`FS_TYPE_EXTERNAL_BASE` to avoid clashes with in-tree identifiers. 19 .. code-block:: c 26 the mount point as the disk volume name, which is used by the file system library 31 .. code-block:: c 41 - ``FS_FATFS`` is the file system type like FATFS or LittleFS. 42 - ``FATFS_MNTP`` is the mount point where the file system will be mounted. [all …]
|
/Zephyr-latest/include/zephyr/fs/ |
D | fs_sys.h | 4 * SPDX-License-Identifier: Apache-2.0 132 * @param mountp Mount point. 135 int (*mount)(struct fs_mount_t *mountp); member 139 * @param mountp Mount point. 146 * @param mountp Mount point. 154 * @param mountp Mount point. 164 * @param mountp Mount point. 172 * @param mountp Mount point. 182 * @param mountp Mount point.
|
D | fs.h | 3 * Copyright (c) 2020-2024 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 42 * Zephyr supports in-tree file systems and external ones. Each 44 * implementation and to associate a mount point with the file system 46 * in-tree file systems. 55 /** Identifier for in-tree FatFS file system. */ 58 /** Identifier for in-tree LittleFS file system. */ 61 /** Identifier for in-tree Ext2 file system. */ 70 /** Flag makes mounted file system read-only */ 72 /** Flag used in pre-defined mount structures that are to be mounted [all …]
|
D | fs_interface.h | 4 * SPDX-License-Identifier: Apache-2.0 16 #if defined(CONFIG_FILE_SYSTEM_MAX_FILE_NAME) && (CONFIG_FILE_SYSTEM_MAX_FILE_NAME - 0) > 0 18 /* No in-tree file system supports name longer than 255 characters */ 21 #error "Max allowed CONFIG_FILE_SYSTEM_MAX_FILE_NAME is 255 characters, when any in-tree FS enabled" 79 /** Pointer to mount point structure */ 93 /** Pointer to mount point structure */
|
/Zephyr-latest/tests/subsys/fs/littlefs/src/ |
D | testfs_lfs.h | 4 * SPDX-License-Identifier: Apache-2.0 30 * mount point. 34 * @param mp pointer to the mount point data. The flash partition ID
|
/Zephyr-latest/samples/subsys/fs/littlefs/ |
D | README.rst | 1 .. zephyr:code-sample:: littlefs 3 :relevant-api: file_system_api flash_area_api 24 ------------------- 33 [00:00:00.010,559] <wrn> littlefs: can't mount (LFS -84); formatting 40 [00:00:00.867,034] <err> fs: failed get file or dir stat (-2) 46 --------------------------- 52 https://www.thevtool.com/mounting-littlefs-on-linux-machine/ 54 .. code-block:: console 57 …lfs -d -s -f --read_size=512 --prog_size=512 --block_size=512 --cache_size=512 --lookahead_size=81… 58 …lfs -d -s -f --read_size=512 --prog_size=512 --block_size=512 --cache_size=512 --lookahead_size=81… [all …]
|
/Zephyr-latest/tests/subsys/fs/fs_api/src/ |
D | test_fs_dir_file.c | 5 * SPDX-License-Identifier: Apache-2.0 43 /* invalid name of mount point, not start with '/' */ 51 /* length of the name of mount point is too short */ 59 /* NULL mount point */ 74 /* for test_fs, name of mount point must end with ':' */ 124 * @brief Test mount interface of filesystem 139 zassert_not_equal(ret, 0, "Mount a NULL fs"); in test_mount() 141 TC_PRINT("Mount an unsupported file system\n"); in test_mount() 143 zassert_not_equal(ret, 0, "Mount an unsupported fs"); in test_mount() 147 TC_PRINT("Mount to an invalid directory\n"); in test_mount() [all …]
|
/Zephyr-latest/samples/subsys/fs/littlefs/boards/ |
D | cyw920829m2evk_02.overlay | 6 mount-point = "/lfs1"; 8 read-size = <16>; 9 prog-size = <16>; 10 cache-size = <64>; 11 lookahead-size = <32>; 12 block-cycles = <512>;
|
D | stm32f746g_disco.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <32>; 13 prog-size = <32>; 14 cache-size = <256>; 15 lookahead-size = <64>; 16 block-cycles = <512>; 18 mount-point = "/lfs1";
|
D | stm32h750b_dk.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <32>; 13 prog-size = <32>; 14 cache-size = <256>; 15 lookahead-size = <64>; 16 block-cycles = <512>; 18 mount-point = "/lfs1";
|
D | stm32h747i_disco_stm32h747xx_m7.overlay | 5 * SPDX-License-Identifier: Apache-2.0 13 read-size = <32>; 14 prog-size = <32>; 15 cache-size = <256>; 16 lookahead-size = <64>; 17 block-cycles = <512>; 19 mount-point = "/lfs1";
|
D | b_u585i_iot02a.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <256>; 13 prog-size = <256>; 14 cache-size = <4096>; 15 lookahead-size = <256>; 16 block-cycles = <512>; 18 mount-point = "/lfs1"; 26 /delete-node/ partition;
|
D | stm32l562e_dk.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <256>; 13 prog-size = <256>; 14 cache-size = <4096>; 15 lookahead-size = <256>; 16 block-cycles = <512>; 18 mount-point = "/lfs1"; 26 /delete-node/ partition;
|
D | bmd_345_eval.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &storage_partition; 14 mount-point = "/lfs1"; 17 read-size = <16>; 18 prog-size = <16>; 19 cache-size = <64>; 20 lookahead-size = <32>; 21 block-cycles = <512>; 28 compatible = "fixed-partitions"; 29 #address-cells = <1>; [all …]
|
D | nrf52840dk_nrf52840_qspi.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &storage_partition; 14 mount-point = "/lfs1"; 17 read-size = <16>; 18 prog-size = <16>; 19 cache-size = <64>; 20 lookahead-size = <32>; 21 block-cycles = <512>; 28 compatible = "fixed-partitions"; 29 #address-cells = <1>; [all …]
|
/Zephyr-latest/tests/subsys/logging/log_backend_fs/boards/ |
D | cyw920829m2evk_02.overlay | 6 mount-point = "/lfs1"; 8 read-size = <16>; 9 prog-size = <16>; 10 cache-size = <64>; 11 lookahead-size = <32>; 12 block-cycles = <512>;
|
D | mr_canhubk3.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &storage_partition; 14 mount-point = "/lfs1"; 16 read-size = <16>; 17 prog-size = <16>; 18 cache-size = <64>; 19 lookahead-size = <32>; 20 block-cycles = <512>; 27 compatible = "fixed-partitions"; 28 #address-cells = <1>; [all …]
|
/Zephyr-latest/tests/subsys/fs/common/ |
D | test_fs_mount_flags.c | 5 * SPDX-License-Identifier: Apache-2.0 12 /* Mount point for test should be provided by test runner */ 25 mp->flags |= FS_MOUNT_FLAG_NO_FORMAT; in test_fs_mount_flags() 27 TC_PRINT("Mount unformatted with FS_MOUNT_FLAG_NO_FORMAT set\n"); in test_fs_mount_flags() 30 /* Test FS_MOUNT_FLAG_READ_ONLY on non-formatted volume*/ in test_fs_mount_flags() 31 mp->flags = FS_MOUNT_FLAG_READ_ONLY; in test_fs_mount_flags() 33 TC_PRINT("Mount unformatted with FS_MOUNT_FLAG_READ_ONLY set\n"); in test_fs_mount_flags() 36 /* Format volume and add some files/dirs to check read-only flag */ in test_fs_mount_flags() 37 mp->flags = 0; in test_fs_mount_flags() 39 TC_PRINT("Mount again to format volume\n"); in test_fs_mount_flags() [all …]
|
D | test_fs_mkfs.c | 4 * SPDX-License-Identifier: Apache-2.0 11 /* Mount point and paths must be provided by test runner. */ 24 TC_PRINT("Mount with flag no format\n"); in test_fs_mkfs_simple() 25 fs_mkfs_mp->flags = FS_MOUNT_FLAG_NO_FORMAT; in test_fs_mkfs_simple() 28 if (fs_mkfs_mp->type == FS_LITTLEFS) { in test_fs_mkfs_simple() 29 zassert_equal(ret, -EFAULT, "Expected EFAULT got %d", ret); in test_fs_mkfs_simple() 30 } else if (fs_mkfs_mp->type == FS_FATFS) { in test_fs_mkfs_simple() 31 zassert_equal(ret, -ENODEV, "Expected ENODEV got %d", ret); in test_fs_mkfs_simple() 38 TC_PRINT("Mount created file system without formatting\n"); in test_fs_mkfs_simple() 39 fs_mkfs_mp->flags = FS_MOUNT_FLAG_NO_FORMAT; in test_fs_mkfs_simple() [all …]
|
/Zephyr-latest/tests/subsys/logging/log_backend_fs/ |
D | automount.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &lfs1; 13 mount-point = "/lfs1"; 16 read-size = <16>; 17 prog-size = <16>; 18 cache-size = <64>; 19 lookahead-size = <32>; 20 block-cycles = <512>;
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/ |
D | fs_mgmt.h | 2 * Copyright (c) 2018-2022 mcumgr authors 4 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 6 * SPDX-License-Identifier: Apache-2.0 77 /** The specified mount point was not found or is not mounted. */ 80 /** The specified mount point is that of a read-only filesystem. */
|