diff options
author | Craig Chi <craigchi@google.com> | 2020-08-28 11:25:19 -0700 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-09-16 12:19:30 -0700 |
commit | e63abd82ddfbaeb35c1dfc7c553db3d78207b037 (patch) | |
tree | 20c3d2a94390b7a01e8f4ffed9d5dd1e41c15035 /test/util/fuse_util.h | |
parent | 98faed55e682cf34bb713c37b063a7d1da5e8352 (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.h | 3 |
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); |