mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
fs/shmfs: Fix stat() system call for shmfs object
Set i_size for shmfs objects
This commit is contained in:
@@ -412,7 +412,7 @@ struct inode
|
||||
uint16_t i_flags; /* Flags for inode */
|
||||
union inode_ops_u u; /* Inode operations */
|
||||
ino_t i_ino; /* Inode serial number */
|
||||
#ifdef CONFIG_PSEUDOFS_FILE
|
||||
#if defined(CONFIG_PSEUDOFS_FILE) || defined(CONFIG_FS_SHMFS)
|
||||
size_t i_size; /* The size of per inode driver */
|
||||
#endif
|
||||
#ifdef CONFIG_PSEUDOFS_ATTRIBUTES
|
||||
|
||||
Reference in New Issue
Block a user