Re: [PATCH v3 07/10] virtiofsd: Add lo_inode.fhandle

2021-08-09 Thread Hanna Reitz
On 09.08.21 17:21, Vivek Goyal wrote: On Fri, Jul 30, 2021 at 05:01:31PM +0200, Max Reitz wrote: This new field is an alternative to lo_inode.fd: Either of the two must be set. In case an O_PATH FD is needed for some lo_inode, it is either taken from lo_inode.fd, if valid, or a temporary FD is

Re: [PATCH v3 07/10] virtiofsd: Add lo_inode.fhandle

2021-08-09 Thread Vivek Goyal
On Fri, Jul 30, 2021 at 05:01:31PM +0200, Max Reitz wrote: > This new field is an alternative to lo_inode.fd: Either of the two must > be set. In case an O_PATH FD is needed for some lo_inode, it is either > taken from lo_inode.fd, if valid, or a temporary FD is opened with > open_by_handle_at().

[PATCH v3 07/10] virtiofsd: Add lo_inode.fhandle

2021-07-30 Thread Max Reitz
This new field is an alternative to lo_inode.fd: Either of the two must be set. In case an O_PATH FD is needed for some lo_inode, it is either taken from lo_inode.fd, if valid, or a temporary FD is opened with open_by_handle_at(). Using a file handle instead of an FD has the advantage of keeping