mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 11:03:16 +08:00
Add an lstat method to mountpt_operations so that mounted file systems can report link metadata without dereferencing symbolic links. In mountptrename() and stat_recursive(), prefer lstat() over stat() when it is available so that rename() and the non-following stat path operate on the link itself rather than its target, matching POSIX semantics. Signed-off-by: zhengyu16 <zhengyu16@xiaomi.com>