From 4e5386443a34562ca7b01562aba279f95218fc70 Mon Sep 17 00:00:00 2001 From: asomers Date: Fri, 21 Jun 2019 04:37:11 +0000 Subject: [PATCH] fusefs: update tests after r349260 r349260 removed some Linuxisms from the FUSE protocol header file in favor of standard C99 types. This change follows suit in the tests. Sponsored by: The FreeBSD Foundation --- tests/sys/fs/fusefs/mockfs.hh | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/sys/fs/fusefs/mockfs.hh b/tests/sys/fs/fusefs/mockfs.hh index 94029748107..174ed4c329a 100644 --- a/tests/sys/fs/fusefs/mockfs.hh +++ b/tests/sys/fs/fusefs/mockfs.hh @@ -79,40 +79,40 @@ struct fuse_create_out { /* Protocol 7.8 version of struct fuse_attr */ struct fuse_attr_7_8 { - __u64 ino; - __u64 size; - __u64 blocks; - __u64 atime; - __u64 mtime; - __u64 ctime; - __u32 atimensec; - __u32 mtimensec; - __u32 ctimensec; - __u32 mode; - __u32 nlink; - __u32 uid; - __u32 gid; - __u32 rdev; + uint64_t ino; + uint64_t size; + uint64_t blocks; + uint64_t atime; + uint64_t mtime; + uint64_t ctime; + uint32_t atimensec; + uint32_t mtimensec; + uint32_t ctimensec; + uint32_t mode; + uint32_t nlink; + uint32_t uid; + uint32_t gid; + uint32_t rdev; }; /* Protocol 7.8 version of struct fuse_attr_out */ struct fuse_attr_out_7_8 { - __u64 attr_valid; - __u32 attr_valid_nsec; - __u32 dummy; + uint64_t attr_valid; + uint32_t attr_valid_nsec; + uint32_t dummy; struct fuse_attr_7_8 attr; }; /* Protocol 7.8 version of struct fuse_entry_out */ struct fuse_entry_out_7_8 { - __u64 nodeid; /* Inode ID */ - __u64 generation; /* Inode generation: nodeid:gen must + uint64_t nodeid; /* Inode ID */ + uint64_t generation; /* Inode generation: nodeid:gen must be unique for the fs's lifetime */ - __u64 entry_valid; /* Cache timeout for the name */ - __u64 attr_valid; /* Cache timeout for the attributes */ - __u32 entry_valid_nsec; - __u32 attr_valid_nsec; + uint64_t entry_valid; /* Cache timeout for the name */ + uint64_t attr_valid; /* Cache timeout for the attributes */ + uint32_t entry_valid_nsec; + uint32_t attr_valid_nsec; struct fuse_attr_7_8 attr; }; -- 2.45.0