acassis commented on issue #16484:
URL: https://github.com/apache/nuttx/issues/16484#issuecomment-2940438613

   @TimJTi did you try to use an old NuttX version to compare? I think since 
BINFS is a virtual file system it is not expected to show the right size of 
binaries, but of course it could be possible to add support to list file size. 
I think binfs is needed when we need to run external files, it becomes a kind 
of shortcut the external files mounted from a thumb drive for example. I don't 
remember all the details, but I think it was needed when I was testing running 
external files.
   
   Please take a look at fs_binfs.c for reference:
   
   ```
   static int binfs_fstat(FAR const struct file *filep, FAR struct stat *buf)
   {
     DEBUGASSERT(buf != NULL);
   
     /* It's a execute-only file system */
   
     buf->st_mode    = S_IFREG | S_IXOTH | S_IXGRP | S_IXUSR;
     buf->st_size    = 0;
     buf->st_blksize = 0;
     buf->st_blocks  = 0;
     return OK;
   }
   ``


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to