summaryrefslogtreecommitdiffstats
path: root/tools/virtiofsd/fuse_lowlevel.h
diff options
context:
space:
mode:
authorMax Reitz2020-09-09 20:40:24 +0200
committerDr. David Alan Gilbert2020-10-26 19:35:32 +0100
commitede24b6be798000bbf554891e5b54a0f4848897f (patch)
tree942aacb631d7669534998a9c9936933f40fd4ae1 /tools/virtiofsd/fuse_lowlevel.h
parentvirtiofsd: Add attr_flags to fuse_entry_param (diff)
downloadqemu-ede24b6be798000bbf554891e5b54a0f4848897f.tar.gz
qemu-ede24b6be798000bbf554891e5b54a0f4848897f.tar.xz
qemu-ede24b6be798000bbf554891e5b54a0f4848897f.zip
virtiofsd: Add fuse_reply_attr_with_flags()
The plain fuse_reply_attr() function does not allow setting fuse_attr.flags, so add this new function that does. Make fuse_reply_attr() a wrapper around it. Signed-off-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200909184028.262297-5-mreitz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tools/virtiofsd/fuse_lowlevel.h')
-rw-r--r--tools/virtiofsd/fuse_lowlevel.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/virtiofsd/fuse_lowlevel.h b/tools/virtiofsd/fuse_lowlevel.h
index 9c06240f9e..1ff6ba1e4f 100644
--- a/tools/virtiofsd/fuse_lowlevel.h
+++ b/tools/virtiofsd/fuse_lowlevel.h
@@ -1314,6 +1314,21 @@ int fuse_reply_attr(fuse_req_t req, const struct stat *attr,
double attr_timeout);
/**
+ * Reply with attributes and set fuse_attr.flags
+ *
+ * Possible requests:
+ * getattr, setattr
+ *
+ * @param req request handle
+ * @param attr the attributes
+ * @param attr_timeout validity timeout (in seconds) for the attributes
+ * @param attr_flags flags to put into fuse_attr.flags
+ * @return zero for success, -errno for failure to send reply
+ */
+int fuse_reply_attr_with_flags(fuse_req_t req, const struct stat *attr,
+ double attr_timeout, uint32_t attr_flags);
+
+/**
* Reply with the contents of a symbolic link
*
* Possible requests: