nuttx/fs/fat
yinshengkai 450e760d16 fs/fat: add support for FIOC_FILEPATH ioctl
This patch adds support for the FIOC_FILEPATH ioctl command in the
FAT filesystem, allowing applications to retrieve the full path of
an open file descriptor.

Key features:
- Implements fat_getfilepath() to construct file paths by traversing
  parent directories using ".." entries
- Adds fat_findlfnstart() helper to locate the start of LFN sequences
- Supports both FAT12/16 and FAT32 filesystem types
- Handles both regular directories and root directory traversal

This functionality is useful for debugging, logging, and applications
that need to track file paths at runtime.

Signed-off-by: yinshengkai <yinshengkai@bytedance.com>
2026-01-27 10:37:37 +08:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_fat32.c fs/fat: add support for FIOC_FILEPATH ioctl 2026-01-27 10:37:37 +08:00
fs_fat32.h fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_fat32attrib.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_fat32dirent.c fs/fat: Ignore multiple consecutive slashes in long file names 2025-11-27 22:26:56 +08:00
fs_fat32util.c fs/fat/fs_fat32util.c: fix potential exception due to dividing zero during mounting when fat is corrupted 2024-12-13 11:22:54 +08:00
Kconfig Kconfig: Simplify the conditional default statement 2023-07-16 14:39:20 -03:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00