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 =
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;
> +
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