mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 19:38:39 +08:00
450e760d16
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>