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/vfs: Add nx_close function 2020-05-03 12:15:54 -06:00
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 Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
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 Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
fs_fsync.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
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 Fix more warnings noted in PR checks 2020-04-13 02:09:34 +08:00
fs_lseek.c fs/vfs: Add nx_seek function 2020-05-03 12:15:54 -06:00
fs_mkdir.c Check return from nxsem_wait_initialize() 2020-03-30 01:33:31 +01:00
fs_open.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
fs_poll.c sched/: Make more naming consistent 2020-05-17 14:01:00 -03:00
fs_pread.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
fs_pwrite.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
fs_read.c Fix typo in the file_read description (#44) 2020-01-07 07:07:39 -03:00
fs_readlink.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
fs_rename.c Check return from nxsem_wait_initialize() 2020-03-30 01:33:31 +01:00
fs_rmdir.c Check return from nxsem_wait_initialize() 2020-03-30 01:33:31 +01:00
fs_select.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
fs_sendfile.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
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/: Run all .c files under fs/ through tools/nxstyle. 2019-10-27 11:48:14 -06:00
fs_truncate.c Squashed commit of the following: 2018-01-04 10:54:54 -06:00
fs_unlink.c Check return from nxsem_wait_initialize() 2020-03-30 01:33:31 +01:00
fs_write.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
Make.defs CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to disable the file system. NuttX with no file system does not make sense. 2019-02-11 12:09:26 -06:00