]> git.proxmox.com Git - mirror_qemu.git/commit
virtiofsd: extract lo_do_open() from lo_open()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 4 Feb 2021 15:02:06 +0000 (15:02 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 4 Feb 2021 17:32:53 +0000 (17:32 +0000)
commit8afaaee976965b7fb90ec225a51d60f35c5f173c
tree9a511b98f29e3558c13c1ffef879da0e78fe4af7
parent1ba089f2255bfdb071be3ce6ac6c3069e8012179
virtiofsd: extract lo_do_open() from lo_open()

Both lo_open() and lo_create() have similar code to open a file. Extract
a common lo_do_open() function from lo_open() that will be used by
lo_create() in a later commit.

Since lo_do_open() does not otherwise need fuse_req_t req, convert
lo_add_fd_mapping() to use struct lo_data *lo instead.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20210204150208.367837-2-stefanha@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_ll.c