summaryrefslogtreecommitdiffhomepage
path: root/test/util/fuse_util.h
diff options
context:
space:
mode:
authorCraig Chi <craigchi@google.com>2020-08-28 11:25:19 -0700
committerAndrei Vagin <avagin@gmail.com>2020-09-16 12:19:30 -0700
commite63abd82ddfbaeb35c1dfc7c553db3d78207b037 (patch)
tree20c3d2a94390b7a01e8f4ffed9d5dd1e41c15035 /test/util/fuse_util.h
parent98faed55e682cf34bb713c37b063a7d1da5e8352 (diff)
Add default attr in fuse_util
fuse_util provides utilities for fuse testing. Add a function to return a stub fuse_attr struct with specified mode and nodeid.
Diffstat (limited to 'test/util/fuse_util.h')
-rw-r--r--test/util/fuse_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/util/fuse_util.h b/test/util/fuse_util.h
index 1f1bf64a4..6b5a8ce1f 100644
--- a/test/util/fuse_util.h
+++ b/test/util/fuse_util.h
@@ -63,6 +63,9 @@ std::vector<struct iovec> FuseGenerateIovecs(T &first, Types &...args) {
return first_iovec;
}
+// Create a fuse_attr filled with the specified mode and inode.
+fuse_attr DefaultFuseAttr(mode_t mode, uint64_t inode);
+
// Return a fuse_entry_out FUSE server response body.
fuse_entry_out DefaultEntryOut(mode_t mode, uint64_t nodeId);