]> git.proxmox.com Git - mirror_qemu.git/commit
virtiofsd: Make fsync work even if only inode is passed in
authorVivek Goyal <vgoyal@redhat.com>
Thu, 30 Aug 2018 18:22:10 +0000 (14:22 -0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:36 +0000 (16:41 +0000)
commit1b209805f8159c3f4d89ddb9390a5f64887cebff
treee53ff3056e6afaab2f0ad28a6510a9a05bade438
parent9776457ca6f05d5900e27decb1dba2ffddf95a22
virtiofsd: Make fsync work even if only inode is passed in

If caller has not sent file handle in request, then using inode, retrieve
the fd opened using O_PATH and use that to open file again and issue
fsync. This will be needed when dax_flush() calls fsync. At that time
we only have inode information (and not file).

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_lowlevel.c
tools/virtiofsd/passthrough_ll.c