Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _LINUX_FUSE_H |
| 20 | #define _LINUX_FUSE_H |
| 21 | #include <stdint.h> |
| 22 | #define FUSE_KERNEL_VERSION 7 |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 23 | #define FUSE_KERNEL_MINOR_VERSION 32 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | #define FUSE_ROOT_ID 1 |
| 25 | struct fuse_attr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 | uint64_t ino; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | uint64_t size; |
| 28 | uint64_t blocks; |
| 29 | uint64_t atime; |
| 30 | uint64_t mtime; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | uint64_t ctime; |
| 32 | uint32_t atimensec; |
| 33 | uint32_t mtimensec; |
| 34 | uint32_t ctimensec; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | uint32_t mode; |
| 36 | uint32_t nlink; |
| 37 | uint32_t uid; |
| 38 | uint32_t gid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | uint32_t rdev; |
| 40 | uint32_t blksize; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 41 | uint32_t flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | struct fuse_kstatfs { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | uint64_t blocks; |
| 45 | uint64_t bfree; |
| 46 | uint64_t bavail; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | uint64_t files; |
| 48 | uint64_t ffree; |
| 49 | uint32_t bsize; |
| 50 | uint32_t namelen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | uint32_t frsize; |
| 52 | uint32_t padding; |
| 53 | uint32_t spare[6]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 55 | struct fuse_file_lock { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 56 | uint64_t start; |
| 57 | uint64_t end; |
| 58 | uint32_t type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | uint32_t pid; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | }; |
| 61 | #define FATTR_MODE (1 << 0) |
| 62 | #define FATTR_UID (1 << 1) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | #define FATTR_GID (1 << 2) |
| 64 | #define FATTR_SIZE (1 << 3) |
| 65 | #define FATTR_ATIME (1 << 4) |
| 66 | #define FATTR_MTIME (1 << 5) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 67 | #define FATTR_FH (1 << 6) |
| 68 | #define FATTR_ATIME_NOW (1 << 7) |
| 69 | #define FATTR_MTIME_NOW (1 << 8) |
| 70 | #define FATTR_LOCKOWNER (1 << 9) |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 71 | #define FATTR_CTIME (1 << 10) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | #define FOPEN_DIRECT_IO (1 << 0) |
| 73 | #define FOPEN_KEEP_CACHE (1 << 1) |
| 74 | #define FOPEN_NONSEEKABLE (1 << 2) |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 75 | #define FOPEN_CACHE_DIR (1 << 3) |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 76 | #define FOPEN_STREAM (1 << 4) |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 77 | #define FUSE_ASYNC_READ (1 << 0) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 78 | #define FUSE_POSIX_LOCKS (1 << 1) |
| 79 | #define FUSE_FILE_OPS (1 << 2) |
| 80 | #define FUSE_ATOMIC_O_TRUNC (1 << 3) |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 81 | #define FUSE_EXPORT_SUPPORT (1 << 4) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 82 | #define FUSE_BIG_WRITES (1 << 5) |
| 83 | #define FUSE_DONT_MASK (1 << 6) |
| 84 | #define FUSE_SPLICE_WRITE (1 << 7) |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 85 | #define FUSE_SPLICE_MOVE (1 << 8) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 86 | #define FUSE_SPLICE_READ (1 << 9) |
| 87 | #define FUSE_FLOCK_LOCKS (1 << 10) |
| 88 | #define FUSE_HAS_IOCTL_DIR (1 << 11) |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 89 | #define FUSE_AUTO_INVAL_DATA (1 << 12) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 90 | #define FUSE_DO_READDIRPLUS (1 << 13) |
| 91 | #define FUSE_READDIRPLUS_AUTO (1 << 14) |
| 92 | #define FUSE_ASYNC_DIO (1 << 15) |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 93 | #define FUSE_WRITEBACK_CACHE (1 << 16) |
| 94 | #define FUSE_NO_OPEN_SUPPORT (1 << 17) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 95 | #define FUSE_PARALLEL_DIROPS (1 << 18) |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 96 | #define FUSE_HANDLE_KILLPRIV (1 << 19) |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 97 | #define FUSE_POSIX_ACL (1 << 20) |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 98 | #define FUSE_ABORT_ERROR (1 << 21) |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 99 | #define FUSE_MAX_PAGES (1 << 22) |
| 100 | #define FUSE_CACHE_SYMLINKS (1 << 23) |
Christopher Ferris | 24f97eb | 2019-05-20 12:58:13 -0700 | [diff] [blame] | 101 | #define FUSE_NO_OPENDIR_SUPPORT (1 << 24) |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 102 | #define FUSE_EXPLICIT_INVAL_DATA (1 << 25) |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 103 | #define FUSE_MAP_ALIGNMENT (1 << 26) |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 104 | #define FUSE_SUBMOUNTS (1 << 27) |
| 105 | #define FUSE_PASSTHROUGH (1 << 31) |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 106 | #define CUSE_UNRESTRICTED_IOCTL (1 << 0) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 107 | #define FUSE_RELEASE_FLUSH (1 << 0) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 108 | #define FUSE_RELEASE_FLOCK_UNLOCK (1 << 1) |
| 109 | #define FUSE_GETATTR_FH (1 << 0) |
| 110 | #define FUSE_LK_FLOCK (1 << 0) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 111 | #define FUSE_WRITE_CACHE (1 << 0) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 112 | #define FUSE_WRITE_LOCKOWNER (1 << 1) |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 113 | #define FUSE_WRITE_KILL_PRIV (1 << 2) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 114 | #define FUSE_READ_LOCKOWNER (1 << 1) |
| 115 | #define FUSE_IOCTL_COMPAT (1 << 0) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 116 | #define FUSE_IOCTL_UNRESTRICTED (1 << 1) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 117 | #define FUSE_IOCTL_RETRY (1 << 2) |
| 118 | #define FUSE_IOCTL_32BIT (1 << 3) |
| 119 | #define FUSE_IOCTL_DIR (1 << 4) |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 120 | #define FUSE_IOCTL_COMPAT_X32 (1 << 5) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 121 | #define FUSE_IOCTL_MAX_IOV 256 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 122 | #define FUSE_POLL_SCHEDULE_NOTIFY (1 << 0) |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 123 | #define FUSE_FSYNC_FDATASYNC (1 << 0) |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 124 | #define FUSE_ATTR_SUBMOUNT (1 << 0) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 125 | enum fuse_opcode { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 126 | FUSE_LOOKUP = 1, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 127 | FUSE_FORGET = 2, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 128 | FUSE_GETATTR = 3, |
| 129 | FUSE_SETATTR = 4, |
| 130 | FUSE_READLINK = 5, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 131 | FUSE_SYMLINK = 6, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 132 | FUSE_MKNOD = 8, |
| 133 | FUSE_MKDIR = 9, |
| 134 | FUSE_UNLINK = 10, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 135 | FUSE_RMDIR = 11, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 136 | FUSE_RENAME = 12, |
| 137 | FUSE_LINK = 13, |
| 138 | FUSE_OPEN = 14, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 139 | FUSE_READ = 15, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 140 | FUSE_WRITE = 16, |
| 141 | FUSE_STATFS = 17, |
| 142 | FUSE_RELEASE = 18, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 143 | FUSE_FSYNC = 20, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 144 | FUSE_SETXATTR = 21, |
| 145 | FUSE_GETXATTR = 22, |
| 146 | FUSE_LISTXATTR = 23, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 147 | FUSE_REMOVEXATTR = 24, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 148 | FUSE_FLUSH = 25, |
| 149 | FUSE_INIT = 26, |
| 150 | FUSE_OPENDIR = 27, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 151 | FUSE_READDIR = 28, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 152 | FUSE_RELEASEDIR = 29, |
| 153 | FUSE_FSYNCDIR = 30, |
| 154 | FUSE_GETLK = 31, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 155 | FUSE_SETLK = 32, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 156 | FUSE_SETLKW = 33, |
| 157 | FUSE_ACCESS = 34, |
| 158 | FUSE_CREATE = 35, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 159 | FUSE_INTERRUPT = 36, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 160 | FUSE_BMAP = 37, |
| 161 | FUSE_DESTROY = 38, |
| 162 | FUSE_IOCTL = 39, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 163 | FUSE_POLL = 40, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 164 | FUSE_NOTIFY_REPLY = 41, |
| 165 | FUSE_BATCH_FORGET = 42, |
| 166 | FUSE_FALLOCATE = 43, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 167 | FUSE_READDIRPLUS = 44, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 168 | FUSE_RENAME2 = 45, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 169 | FUSE_LSEEK = 46, |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 170 | FUSE_COPY_FILE_RANGE = 47, |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 171 | FUSE_SETUPMAPPING = 48, |
| 172 | FUSE_REMOVEMAPPING = 49, |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 173 | FUSE_CANONICAL_PATH = 2016, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 174 | CUSE_INIT = 4096, |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 175 | CUSE_INIT_BSWAP_RESERVED = 1048576, |
| 176 | FUSE_INIT_BSWAP_RESERVED = 436207616, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 177 | }; |
| 178 | enum fuse_notify_code { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 179 | FUSE_NOTIFY_POLL = 1, |
| 180 | FUSE_NOTIFY_INVAL_INODE = 2, |
| 181 | FUSE_NOTIFY_INVAL_ENTRY = 3, |
| 182 | FUSE_NOTIFY_STORE = 4, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 183 | FUSE_NOTIFY_RETRIEVE = 5, |
| 184 | FUSE_NOTIFY_DELETE = 6, |
| 185 | FUSE_NOTIFY_CODE_MAX, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 186 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 187 | #define FUSE_MIN_READ_BUFFER 8192 |
| 188 | #define FUSE_COMPAT_ENTRY_OUT_SIZE 120 |
| 189 | struct fuse_entry_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 190 | uint64_t nodeid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 191 | uint64_t generation; |
| 192 | uint64_t entry_valid; |
| 193 | uint64_t attr_valid; |
| 194 | uint32_t entry_valid_nsec; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 195 | uint32_t attr_valid_nsec; |
| 196 | struct fuse_attr attr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 197 | }; |
| 198 | struct fuse_forget_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 199 | uint64_t nlookup; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 200 | }; |
| 201 | struct fuse_forget_one { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 202 | uint64_t nodeid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 203 | uint64_t nlookup; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 204 | }; |
| 205 | struct fuse_batch_forget_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 206 | uint32_t count; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 207 | uint32_t dummy; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 208 | }; |
| 209 | struct fuse_getattr_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 210 | uint32_t getattr_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 211 | uint32_t dummy; |
| 212 | uint64_t fh; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 213 | }; |
| 214 | #define FUSE_COMPAT_ATTR_OUT_SIZE 96 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 215 | struct fuse_attr_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 216 | uint64_t attr_valid; |
| 217 | uint32_t attr_valid_nsec; |
| 218 | uint32_t dummy; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 219 | struct fuse_attr attr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 220 | }; |
| 221 | #define FUSE_COMPAT_MKNOD_IN_SIZE 8 |
| 222 | struct fuse_mknod_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 223 | uint32_t mode; |
| 224 | uint32_t rdev; |
| 225 | uint32_t umask; |
| 226 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 227 | }; |
| 228 | struct fuse_mkdir_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 229 | uint32_t mode; |
| 230 | uint32_t umask; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 231 | }; |
| 232 | struct fuse_rename_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 233 | uint64_t newdir; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 234 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 235 | struct fuse_rename2_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 236 | uint64_t newdir; |
| 237 | uint32_t flags; |
| 238 | uint32_t padding; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 239 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 240 | struct fuse_link_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 241 | uint64_t oldnodeid; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 242 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 243 | struct fuse_setattr_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 244 | uint32_t valid; |
| 245 | uint32_t padding; |
| 246 | uint64_t fh; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 247 | uint64_t size; |
| 248 | uint64_t lock_owner; |
| 249 | uint64_t atime; |
| 250 | uint64_t mtime; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 251 | uint64_t ctime; |
| 252 | uint32_t atimensec; |
| 253 | uint32_t mtimensec; |
| 254 | uint32_t ctimensec; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 255 | uint32_t mode; |
| 256 | uint32_t unused4; |
| 257 | uint32_t uid; |
| 258 | uint32_t gid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 259 | uint32_t unused5; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 260 | }; |
| 261 | struct fuse_open_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 262 | uint32_t flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 263 | uint32_t unused; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 264 | }; |
| 265 | struct fuse_create_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 266 | uint32_t flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 267 | uint32_t mode; |
| 268 | uint32_t umask; |
| 269 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 270 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 271 | struct fuse_open_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 272 | uint64_t fh; |
| 273 | uint32_t open_flags; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 274 | uint32_t passthrough_fh; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 275 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 276 | struct fuse_release_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 277 | uint64_t fh; |
| 278 | uint32_t flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 279 | uint32_t release_flags; |
| 280 | uint64_t lock_owner; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 281 | }; |
| 282 | struct fuse_flush_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 283 | uint64_t fh; |
| 284 | uint32_t unused; |
| 285 | uint32_t padding; |
| 286 | uint64_t lock_owner; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 287 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 288 | struct fuse_read_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 289 | uint64_t fh; |
| 290 | uint64_t offset; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 291 | uint32_t size; |
| 292 | uint32_t read_flags; |
| 293 | uint64_t lock_owner; |
| 294 | uint32_t flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 295 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 296 | }; |
| 297 | #define FUSE_COMPAT_WRITE_IN_SIZE 24 |
| 298 | struct fuse_write_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 299 | uint64_t fh; |
| 300 | uint64_t offset; |
| 301 | uint32_t size; |
| 302 | uint32_t write_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 303 | uint64_t lock_owner; |
| 304 | uint32_t flags; |
| 305 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 306 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 307 | struct fuse_write_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 308 | uint32_t size; |
| 309 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 310 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 311 | #define FUSE_COMPAT_STATFS_SIZE 48 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 312 | struct fuse_statfs_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 313 | struct fuse_kstatfs st; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 314 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 315 | struct fuse_fsync_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 316 | uint64_t fh; |
| 317 | uint32_t fsync_flags; |
| 318 | uint32_t padding; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 319 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 320 | struct fuse_setxattr_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 321 | uint32_t size; |
| 322 | uint32_t flags; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 323 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 324 | struct fuse_getxattr_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 325 | uint32_t size; |
| 326 | uint32_t padding; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 327 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 328 | struct fuse_getxattr_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 329 | uint32_t size; |
| 330 | uint32_t padding; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 331 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 332 | struct fuse_lk_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 333 | uint64_t fh; |
| 334 | uint64_t owner; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 335 | struct fuse_file_lock lk; |
| 336 | uint32_t lk_flags; |
| 337 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 338 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 339 | struct fuse_lk_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 340 | struct fuse_file_lock lk; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 341 | }; |
| 342 | struct fuse_access_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 343 | uint32_t mask; |
| 344 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 345 | }; |
| 346 | struct fuse_init_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 347 | uint32_t major; |
| 348 | uint32_t minor; |
| 349 | uint32_t max_readahead; |
| 350 | uint32_t flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 351 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 352 | #define FUSE_COMPAT_INIT_OUT_SIZE 8 |
| 353 | #define FUSE_COMPAT_22_INIT_OUT_SIZE 24 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 354 | struct fuse_init_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 355 | uint32_t major; |
| 356 | uint32_t minor; |
| 357 | uint32_t max_readahead; |
| 358 | uint32_t flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 359 | uint16_t max_background; |
| 360 | uint16_t congestion_threshold; |
| 361 | uint32_t max_write; |
| 362 | uint32_t time_gran; |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 363 | uint16_t max_pages; |
Christopher Ferris | 9584fa4 | 2019-12-09 15:36:13 -0800 | [diff] [blame] | 364 | uint16_t map_alignment; |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 365 | uint32_t unused[8]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 366 | }; |
| 367 | #define CUSE_INIT_INFO_MAX 4096 |
| 368 | struct cuse_init_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 369 | uint32_t major; |
| 370 | uint32_t minor; |
| 371 | uint32_t unused; |
| 372 | uint32_t flags; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 373 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 374 | struct cuse_init_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 375 | uint32_t major; |
| 376 | uint32_t minor; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 377 | uint32_t unused; |
| 378 | uint32_t flags; |
| 379 | uint32_t max_read; |
| 380 | uint32_t max_write; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 381 | uint32_t dev_major; |
| 382 | uint32_t dev_minor; |
| 383 | uint32_t spare[10]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 384 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 385 | struct fuse_interrupt_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 386 | uint64_t unique; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 387 | }; |
| 388 | struct fuse_bmap_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 389 | uint64_t block; |
| 390 | uint32_t blocksize; |
| 391 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 392 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 393 | struct fuse_bmap_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 394 | uint64_t block; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 395 | }; |
| 396 | struct fuse_ioctl_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 397 | uint64_t fh; |
| 398 | uint32_t flags; |
| 399 | uint32_t cmd; |
| 400 | uint64_t arg; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 401 | uint32_t in_size; |
| 402 | uint32_t out_size; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 403 | }; |
| 404 | struct fuse_ioctl_iovec { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 405 | uint64_t base; |
| 406 | uint64_t len; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 407 | }; |
| 408 | struct fuse_ioctl_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 409 | int32_t result; |
| 410 | uint32_t flags; |
| 411 | uint32_t in_iovs; |
| 412 | uint32_t out_iovs; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 413 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 414 | struct fuse_poll_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 415 | uint64_t fh; |
| 416 | uint64_t kh; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 417 | uint32_t flags; |
| 418 | uint32_t events; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 419 | }; |
| 420 | struct fuse_poll_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 421 | uint32_t revents; |
| 422 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 423 | }; |
| 424 | struct fuse_notify_poll_wakeup_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 425 | uint64_t kh; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 426 | }; |
| 427 | struct fuse_fallocate_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 428 | uint64_t fh; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 429 | uint64_t offset; |
| 430 | uint64_t length; |
| 431 | uint32_t mode; |
| 432 | uint32_t padding; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 433 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 434 | struct fuse_in_header { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 435 | uint32_t len; |
| 436 | uint32_t opcode; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 437 | uint64_t unique; |
| 438 | uint64_t nodeid; |
| 439 | uint32_t uid; |
| 440 | uint32_t gid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 441 | uint32_t pid; |
| 442 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 443 | }; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 444 | struct fuse_passthrough_out { |
| 445 | uint32_t fd; |
| 446 | uint32_t len; |
| 447 | void * vec; |
| 448 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 449 | struct fuse_out_header { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 450 | uint32_t len; |
| 451 | int32_t error; |
| 452 | uint64_t unique; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 453 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 454 | struct fuse_dirent { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 455 | uint64_t ino; |
| 456 | uint64_t off; |
| 457 | uint32_t namelen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 458 | uint32_t type; |
| 459 | char name[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 460 | }; |
| 461 | #define FUSE_NAME_OFFSET offsetof(struct fuse_dirent, name) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 462 | #define FUSE_DIRENT_ALIGN(x) (((x) + sizeof(uint64_t) - 1) & ~(sizeof(uint64_t) - 1)) |
| 463 | #define FUSE_DIRENT_SIZE(d) FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 464 | struct fuse_direntplus { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 465 | struct fuse_entry_out entry_out; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 466 | struct fuse_dirent dirent; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 467 | }; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 468 | #define FUSE_NAME_OFFSET_DIRENTPLUS offsetof(struct fuse_direntplus, dirent.name) |
| 469 | #define FUSE_DIRENTPLUS_SIZE(d) FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET_DIRENTPLUS + (d)->dirent.namelen) |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 470 | struct fuse_notify_inval_inode_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 471 | uint64_t ino; |
| 472 | int64_t off; |
| 473 | int64_t len; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 474 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 475 | struct fuse_notify_inval_entry_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 476 | uint64_t parent; |
| 477 | uint32_t namelen; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 478 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 479 | }; |
| 480 | struct fuse_notify_delete_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 481 | uint64_t parent; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 482 | uint64_t child; |
| 483 | uint32_t namelen; |
| 484 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 485 | }; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 486 | struct fuse_notify_store_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 487 | uint64_t nodeid; |
| 488 | uint64_t offset; |
| 489 | uint32_t size; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 490 | uint32_t padding; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 491 | }; |
| 492 | struct fuse_notify_retrieve_out { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 493 | uint64_t notify_unique; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 494 | uint64_t nodeid; |
| 495 | uint64_t offset; |
| 496 | uint32_t size; |
| 497 | uint32_t padding; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 498 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 499 | struct fuse_notify_retrieve_in { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 500 | uint64_t dummy1; |
| 501 | uint64_t offset; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 502 | uint32_t size; |
| 503 | uint32_t dummy2; |
| 504 | uint64_t dummy3; |
| 505 | uint64_t dummy4; |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 506 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 507 | #define FUSE_DEV_IOC_CLONE _IOR(229, 0, uint32_t) |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 508 | #define FUSE_DEV_IOC_PASSTHROUGH_OPEN _IOW(229, 1, struct fuse_passthrough_out) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 509 | struct fuse_lseek_in { |
| 510 | uint64_t fh; |
| 511 | uint64_t offset; |
| 512 | uint32_t whence; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 513 | uint32_t padding; |
| 514 | }; |
| 515 | struct fuse_lseek_out { |
| 516 | uint64_t offset; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 517 | }; |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 518 | struct fuse_copy_file_range_in { |
| 519 | uint64_t fh_in; |
| 520 | uint64_t off_in; |
| 521 | uint64_t nodeid_out; |
| 522 | uint64_t fh_out; |
| 523 | uint64_t off_out; |
| 524 | uint64_t len; |
| 525 | uint64_t flags; |
| 526 | }; |
Christopher Ferris | 32ff3f8 | 2020-12-14 13:10:04 -0800 | [diff] [blame^] | 527 | #define FUSE_SETUPMAPPING_FLAG_WRITE (1ull << 0) |
| 528 | #define FUSE_SETUPMAPPING_FLAG_READ (1ull << 1) |
| 529 | struct fuse_setupmapping_in { |
| 530 | uint64_t fh; |
| 531 | uint64_t foffset; |
| 532 | uint64_t len; |
| 533 | uint64_t flags; |
| 534 | uint64_t moffset; |
| 535 | }; |
| 536 | struct fuse_removemapping_in { |
| 537 | uint32_t count; |
| 538 | }; |
| 539 | struct fuse_removemapping_one { |
| 540 | uint64_t moffset; |
| 541 | uint64_t len; |
| 542 | }; |
| 543 | #define FUSE_REMOVEMAPPING_MAX_ENTRY (PAGE_SIZE / sizeof(struct fuse_removemapping_one)) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 544 | #endif |