xiaoxiang781216 commented on code in PR #14901:
URL: https://github.com/apache/nuttx/pull/14901#discussion_r1853368486


##########
fs/littlefs/lfs_vfs.c:
##########
@@ -816,16 +834,31 @@ static int littlefs_fchstat(FAR const struct file *filep,
   inode = filep->f_inode;
   fs    = inode->i_private;
 
+  path = lib_get_pathbuffer();
+  if (path == NULL)
+    {
+      return -ENOMEM;
+    }
+
   /* Call LFS to get file size */
 
+  ret = littlefs_convert_result(lfs_file_path(&fs->lfs, &priv->file, path,

Review Comment:
   Before the similar function is added, please don't revert the function, 
which is already used by other people. 
   it's normal practice to patch 3rd party project to match some special 
requirement.
   We will try the best to upstream the change, but whether and when the change 
can be accepted by the community is out of control, so it is not a good to 
revert the working feature to fit your taste.



-- 
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