nuttx/fs/vfs
Gregory Nutt 1c002e1049 fs/vfs/fs_fstat: Correct fstat() for proxied block and MTD drivers.
Block and MTD drivers may be opened and managed as though they were character drivers.  But this is really sleight of hand; there is a hidden character driver proxy that mediates the interface to the block and MTD drivers in this case.

fstat(), however, did not account for this.  It would report the characteristics of the proxy character driver, not of the underlying block or MTD driver.

This change corrects that.  fstat now checks if the character driver is such a proxy and, if so, reports the characteristics of the underlying block or MTD driver, not the proxy character driver.
2020-05-28 17:34:09 +01:00
..
fs_close.c
fs_dup2.c fs/vfs: Add nx_dup and nx_dup2 function 2020-05-04 07:20:02 -06:00
fs_dup.c fs/vfs: Add nx_dup and nx_dup2 function 2020-05-04 07:20:02 -06:00
fs_dupfd2.c fs/vfs: Add nx_dup and nx_dup2 function 2020-05-04 07:20:02 -06:00
fs_dupfd.c fs/vfs: Add nx_dup and nx_dup2 function 2020-05-04 07:20:02 -06:00
fs_epoll.c
fs_fcntl.c fs/vfs: Add nx_ioctl/nx_fcntl function 2020-05-03 12:15:54 -06:00
fs_fdopen.c fs/vfs/fd_open.c: fs_fdopen() must not set errno 2020-05-23 15:22:09 +08:00
fs_fstat.c fs/vfs/fs_fstat: Correct fstat() for proxied block and MTD drivers. 2020-05-28 17:34:09 +01:00
fs_fstatfs.c
fs_fsync.c
fs_getfilep.c include/nuttx/sched.h: Make naming of all internal names consistent: 2020-05-09 14:19:08 -03:00
fs_ioctl.c fs: Remove all LIBC_IOCTL_VARIADIC related stuff 2020-05-05 08:27:58 -06:00
fs_link.c
fs_lseek.c
fs_mkdir.c
fs_open.c
fs_poll.c sched/: Make more naming consistent 2020-05-17 14:01:00 -03:00
fs_pread.c
fs_pwrite.c
fs_read.c
fs_readlink.c
fs_rename.c
fs_rmdir.c
fs_select.c
fs_sendfile.c
fs_stat.c fs/vfs/fs_fstat: Correct fstat() for proxied block and MTD drivers. 2020-05-28 17:34:09 +01:00
fs_statfs.c
fs_truncate.c
fs_unlink.c
fs_write.c
Make.defs