Re: [PATCH v3 04/10] virtiofsd: Add lo_inode_fd() helper

2021-08-09 Thread Max Reitz
On 06.08.21 20:25, Vivek Goyal wrote: On Fri, Jul 30, 2021 at 05:01:28PM +0200, Max Reitz wrote: [..] @@ -1335,12 +1359,18 @@ static void lo_mknod_symlink(fuse_req_t req, fuse_ino_t parent, return; } +res = lo_inode_fd(dir, _fd); +if (res < 0) { +saverr =

Re: [PATCH v3 04/10] virtiofsd: Add lo_inode_fd() helper

2021-08-06 Thread Vivek Goyal
On Fri, Jul 30, 2021 at 05:01:28PM +0200, Max Reitz wrote: [..] > @@ -1335,12 +1359,18 @@ static void lo_mknod_symlink(fuse_req_t req, > fuse_ino_t parent, > return; > } > > +res = lo_inode_fd(dir, _fd); > +if (res < 0) { > +saverr = -res; > +goto out; > +

[PATCH v3 04/10] virtiofsd: Add lo_inode_fd() helper

2021-07-30 Thread Max Reitz
Once we let lo_inode.fd be optional, we will need its users to open the file handle stored in lo_inode instead. This function will do that. For now, it just returns lo_inode.fd, though. Signed-off-by: Max Reitz --- tools/virtiofsd/passthrough_ll.c | 150 +-- 1 file