alisha-1000 commented on issue #20120:
URL: https://github.com/apache/nuttx/issues/20120#issuecomment-5647122919

   This looks like a useful abstraction, especially since FAT and potentially 
NFS appear to have similar open-file lifetime requirements.
   
   I think an opt-in mechanism makes sense to avoid adding overhead to 
filesystems that already handle object lifetime correctly. A shared 
reference-counted object that tracks `open()`/`dup()`, deferred deletion after 
`unlink()`, and final reclamation on the last `close()` seems like a good 
minimal model.
   
   I’d be interested in exploring a small prototype based on the existing 
`fat_shared_s` implementation and evaluating it with NFS as a second use case. 
This could help determine whether the abstraction is general enough without 
making the VFS lifecycle machinery unnecessarily complex.
   


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