nuttx/fs/vfs
Xiang Xiao 2ea2655bc6 fs/dirent: add d_ino member to struct dirent
Add the POSIX d_ino (file serial number) member to struct dirent and
populate it on every readdir() path, so portable callers (e.g. scp in
dropbear) that read dp->d_ino observe a meaningful, non-zero inode
number:

  - include/dirent.h: declare d_ino in struct dirent and drop the
    outdated comment claiming the field is unimplemented.
  - include/nuttx/fs/hostfs.h: add d_ino to struct nuttx_dirent_s so
    the hostfs ABI can carry the inode number across the VFS boundary.
  - arch/sim/src/sim/posix/sim_hostfs.c: forward the host's
    ent->d_ino into entry->d_ino.
  - fs/vfs/fs_dir.c (read_pseudodir): copy the in-memory inode's
    i_ino into entry->d_ino for the pseudo filesystem.
  - fs/yaffs/yaffs_vfs.c: forward yaffs's dirent->d_ino into
    entry->d_ino.
  - fs/rpmsgfs: extend struct rpmsgfs_readdir_s with an 'ino' field
    and propagate it across the RPC in both rpmsgfs_server (fills it
    from the underlying entry) and rpmsgfs_client (writes it back to
    the caller's nuttx_dirent_s).

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-06-26 10:45:33 -04:00
..
CMakeLists.txt fs/vfs: provide link fallback without softlinks 2026-06-25 09:30:09 +08:00
fs_chstat.c fs/vfs: validate chmod and chown callers in inode_chstat() 2026-05-28 09:36:51 +08:00
fs_close.c fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00
fs_dir.c fs/dirent: add d_ino member to struct dirent 2026-06-26 10:45:33 -04:00
fs_dup.c fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
fs_dup2.c fs/vfs: fix bug about lost dup oflags in dup2 2025-07-15 19:46:24 +08:00
fs_dup3.c fs/vfs: Separate file descriptors from file descriptions 2025-06-12 18:12:42 +08:00
fs_epoll.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_eventfd.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_fchstat.c fs: Move inotify.c from fs/notify/ to fs/vfs/ 2025-06-23 18:17:10 -03:00
fs_fcntl.c fs/fcntl: using ioctl to implement FIOGCLEX/FIOCLEX/FIONCLEX 2025-06-15 07:12:44 -03:00
fs_fstat.c fs/vfs/fs_fstat.c: fix write capability check in proxy_fstat() 2026-04-16 13:35:41 +02:00
fs_fstatfs.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_fsync.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_inotify.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_ioctl.c fs/vfs: Rename lock.h to vfs.h 2025-06-23 18:17:10 -03:00
fs_link.c fs/vfs: provide link fallback without softlinks 2026-06-25 09:30:09 +08:00
fs_lock.c fs/vfs/fs_lock.c: support flock for SHM driver 2026-06-11 09:10:50 +08:00
fs_lseek.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_mkdir.c fs/inode: Add shared permission helpers and pseudoFS open checks 2026-06-20 11:49:09 +08:00
fs_open.c fs/inode: Add shared permission helpers and pseudoFS open checks 2026-06-20 11:49:09 +08:00
fs_poll.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
fs_pread.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_profile.c fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00
fs_pseudofile.c fs/vfs: inherit ownership in pseudofile_create 2026-06-11 12:22:16 -03:00
fs_pwrite.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_read.c fs/vfs: allow NULL iov_base in KERNEL build with zero-based text 2026-05-06 01:37:53 +08:00
fs_readlink.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_rename.c fs/inode: Add shared permission helpers and pseudoFS open checks 2026-06-20 11:49:09 +08:00
fs_rmdir.c fs: Move inotify.c from fs/notify/ to fs/vfs/ 2025-06-23 18:17:10 -03:00
fs_select.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_sendfile.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_signalfd.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_stat.c fs/vfs: fix pseudoFS mode reporting 2026-05-14 02:43:41 -04:00
fs_statfs.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_symlink.c fs/vfs/symlink: fix the inode information update outside of lock 2026-01-28 10:03:06 +08:00
fs_syncfs.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
fs_timerfd.c !sys/types.h: change time_t and clock_t to int64_t to align with other OSes 2026-05-19 16:21:28 +08:00
fs_truncate.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
fs_uio.c fs/uio: do not overwrite the return value 2025-01-22 16:45:46 +08:00
fs_unlink.c fs/inode: Add shared permission helpers and pseudoFS open checks 2026-06-20 11:49:09 +08:00
fs_write.c fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00
Kconfig fs/inode: add optional manual FD backtrace control via task group flag 2026-04-28 09:53:27 +02:00
Make.defs fs/vfs: provide link fallback without softlinks 2026-06-25 09:30:09 +08:00
vfs.h fs: Add Kernel-level VFS Performance Profiler 2026-04-26 11:50:09 -03:00