Swatantra-66 commented on code in PR #20820:
URL: https://github.com/apache/nuttx/pull/20820#discussion_r4353239345


##########
fs/Kconfig:
##########
@@ -17,6 +17,25 @@ config DISABLE_MOUNTPOINT
        bool "Disable support for mount points"
        default n
 
+config FS_DIRENT_LITE
+       bool "Lightweight directory operations"
+       default n
+       depends on BUILD_FLAT
+       ---help---
+               Enable a lightweight directory implementation where opendir(),
+               readdir(), and closedir() bypass file descriptor allocation,
+               the synthetic directory inode, and vectored I/O. This 
significantly
+               reduces code footprint (by ~2 KB) on memory-constrained systems.

Review Comment:
   @xiaoxiang781216 Done. I have pivoted this PR to introduce 
CONFIG_FS_VECTORED_IO (hidden option with no prompt string) as suggested:
   
   Subsystems that implement vector I/O (drivers/serial) select FS_VECTORED_IO.
   When disabled, fs_uio.c, file_readv(), file_writev(), readv(), and writev() 
are omitted, and file_read() / file_write() invoke inode->u.i_ops->read/write 
directly.
   Preserves standard POSIX directory operations intact and resolves all merge 
conflicts with the latest master.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to