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


##########
include/nuttx/sched.h:
##########
@@ -558,6 +558,13 @@ struct task_group_s
 
   struct fdlist tg_fdlist;          /* Maps file descriptor to file         */
 
+#ifdef CONFIG_FS_CHROOT
+  /* chroot() jail **********************************************************/
+
+  FAR struct inode *tg_root;        /* NULL means global pseudo-root        */
+  FAR char *tg_rootrel;             /* Relpath prefix if tg_root is a mount */

Review Comment:
   Yes, this make the code simpler and handle the mount point destroy/create 
correctly



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