Re: [PATCH] Fuse: Add backing file support for uring_cmd

From: Moinak Bhattacharyya
Date: Sat Feb 22 2025 - 17:14:06 EST




So fc->backing_files_map are not really fds registered for IO,
they are essential references to backing inodes.

That's essentially what registered FD's are, they fget() the FD and stash them in an internal data structure. It's not necessarily for I/O per se, its more a mechanism to ensure fast Uring access to a given FD.

> Could you explain how fd registration into the ring would help here?

From my understanding of the previous problem with passthrough, we want to make sure that one can't issue arbitrary write() calls to the open FUSE FD to sneak in an arbitrary file passthrough (I admit, I don't fully understand the concern). In any case, this is obviated by using URING-only mechanisms, right?