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 _UAPI_LINUX_FS_H |
| 20 | #define _UAPI_LINUX_FS_H |
| 21 | #include <linux/limits.h> |
| 22 | #include <linux/ioctl.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #include <linux/types.h> |
| 24 | #undef NR_OPEN |
| 25 | #define INR_OPEN_CUR 1024 |
| 26 | #define INR_OPEN_MAX 4096 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define BLOCK_SIZE_BITS 10 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 28 | #define BLOCK_SIZE (1 << BLOCK_SIZE_BITS) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 29 | #define SEEK_SET 0 |
| 30 | #define SEEK_CUR 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define SEEK_END 2 |
| 32 | #define SEEK_DATA 3 |
| 33 | #define SEEK_HOLE 4 |
| 34 | #define SEEK_MAX SEEK_HOLE |
Christopher Ferris | ba8d4f4 | 2014-09-03 19:56:49 -0700 | [diff] [blame] | 35 | #define RENAME_NOREPLACE (1 << 0) |
| 36 | #define RENAME_EXCHANGE (1 << 1) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 37 | #define RENAME_WHITEOUT (1 << 2) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 38 | struct file_clone_range { |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 39 | __s64 src_fd; |
| 40 | __u64 src_offset; |
| 41 | __u64 src_length; |
| 42 | __u64 dest_offset; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 43 | }; |
| 44 | struct fstrim_range { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 45 | __u64 start; |
| 46 | __u64 len; |
| 47 | __u64 minlen; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | }; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 49 | #define FILE_DEDUPE_RANGE_SAME 0 |
| 50 | #define FILE_DEDUPE_RANGE_DIFFERS 1 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 51 | struct file_dedupe_range_info { |
| 52 | __s64 dest_fd; |
| 53 | __u64 dest_offset; |
| 54 | __u64 bytes_deduped; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 55 | __s32 status; |
| 56 | __u32 reserved; |
| 57 | }; |
| 58 | struct file_dedupe_range { |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 59 | __u64 src_offset; |
| 60 | __u64 src_length; |
| 61 | __u16 dest_count; |
| 62 | __u16 reserved1; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 63 | __u32 reserved2; |
| 64 | struct file_dedupe_range_info info[0]; |
| 65 | }; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 66 | struct files_stat_struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 67 | unsigned long nr_files; |
| 68 | unsigned long nr_free_files; |
| 69 | unsigned long max_files; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 70 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 71 | struct inodes_stat_t { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 72 | long nr_inodes; |
| 73 | long nr_unused; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 74 | long dummy[5]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 75 | }; |
| 76 | #define NR_FILE 8192 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 77 | #define MS_RDONLY 1 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 78 | #define MS_NOSUID 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 79 | #define MS_NODEV 4 |
| 80 | #define MS_NOEXEC 8 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 81 | #define MS_SYNCHRONOUS 16 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 82 | #define MS_REMOUNT 32 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | #define MS_MANDLOCK 64 |
| 84 | #define MS_DIRSYNC 128 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 85 | #define MS_NOATIME 1024 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 86 | #define MS_NODIRATIME 2048 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 87 | #define MS_BIND 4096 |
| 88 | #define MS_MOVE 8192 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 89 | #define MS_REC 16384 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 90 | #define MS_VERBOSE 32768 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 91 | #define MS_SILENT 32768 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 92 | #define MS_POSIXACL (1 << 16) |
| 93 | #define MS_UNBINDABLE (1 << 17) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 94 | #define MS_PRIVATE (1 << 18) |
| 95 | #define MS_SLAVE (1 << 19) |
| 96 | #define MS_SHARED (1 << 20) |
| 97 | #define MS_RELATIME (1 << 21) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 98 | #define MS_KERNMOUNT (1 << 22) |
| 99 | #define MS_I_VERSION (1 << 23) |
| 100 | #define MS_STRICTATIME (1 << 24) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 101 | #define MS_LAZYTIME (1 << 25) |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 102 | #define MS_SUBMOUNT (1 << 26) |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 103 | #define MS_NOREMOTELOCK (1 << 27) |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 104 | #define MS_NOSEC (1 << 28) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 105 | #define MS_BORN (1 << 29) |
| 106 | #define MS_ACTIVE (1 << 30) |
| 107 | #define MS_NOUSER (1 << 31) |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 108 | #define MS_RMT_MASK (MS_RDONLY | MS_SYNCHRONOUS | MS_MANDLOCK | MS_I_VERSION | MS_LAZYTIME) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 109 | #define MS_MGC_VAL 0xC0ED0000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 110 | #define MS_MGC_MSK 0xffff0000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 111 | struct fsxattr { |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 112 | __u32 fsx_xflags; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 113 | __u32 fsx_extsize; |
| 114 | __u32 fsx_nextents; |
| 115 | __u32 fsx_projid; |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 116 | __u32 fsx_cowextsize; |
| 117 | unsigned char fsx_pad[8]; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 118 | }; |
| 119 | #define FS_XFLAG_REALTIME 0x00000001 |
| 120 | #define FS_XFLAG_PREALLOC 0x00000002 |
| 121 | #define FS_XFLAG_IMMUTABLE 0x00000008 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 122 | #define FS_XFLAG_APPEND 0x00000010 |
| 123 | #define FS_XFLAG_SYNC 0x00000020 |
| 124 | #define FS_XFLAG_NOATIME 0x00000040 |
| 125 | #define FS_XFLAG_NODUMP 0x00000080 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 126 | #define FS_XFLAG_RTINHERIT 0x00000100 |
| 127 | #define FS_XFLAG_PROJINHERIT 0x00000200 |
| 128 | #define FS_XFLAG_NOSYMLINKS 0x00000400 |
| 129 | #define FS_XFLAG_EXTSIZE 0x00000800 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 130 | #define FS_XFLAG_EXTSZINHERIT 0x00001000 |
| 131 | #define FS_XFLAG_NODEFRAG 0x00002000 |
| 132 | #define FS_XFLAG_FILESTREAM 0x00004000 |
| 133 | #define FS_XFLAG_DAX 0x00008000 |
Christopher Ferris | 6a9755d | 2017-01-13 14:09:31 -0800 | [diff] [blame] | 134 | #define FS_XFLAG_COWEXTSIZE 0x00010000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 135 | #define FS_XFLAG_HASATTR 0x80000000 |
| 136 | #define BLKROSET _IO(0x12, 93) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 137 | #define BLKROGET _IO(0x12, 94) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 138 | #define BLKRRPART _IO(0x12, 95) |
| 139 | #define BLKGETSIZE _IO(0x12, 96) |
| 140 | #define BLKFLSBUF _IO(0x12, 97) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 141 | #define BLKRASET _IO(0x12, 98) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 142 | #define BLKRAGET _IO(0x12, 99) |
| 143 | #define BLKFRASET _IO(0x12, 100) |
| 144 | #define BLKFRAGET _IO(0x12, 101) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 145 | #define BLKSECTSET _IO(0x12, 102) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 146 | #define BLKSECTGET _IO(0x12, 103) |
| 147 | #define BLKSSZGET _IO(0x12, 104) |
| 148 | #define BLKBSZGET _IOR(0x12, 112, size_t) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 149 | #define BLKBSZSET _IOW(0x12, 113, size_t) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 150 | #define BLKGETSIZE64 _IOR(0x12, 114, size_t) |
| 151 | #define BLKTRACESETUP _IOWR(0x12, 115, struct blk_user_trace_setup) |
| 152 | #define BLKTRACESTART _IO(0x12, 116) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 153 | #define BLKTRACESTOP _IO(0x12, 117) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 154 | #define BLKTRACETEARDOWN _IO(0x12, 118) |
| 155 | #define BLKDISCARD _IO(0x12, 119) |
| 156 | #define BLKIOMIN _IO(0x12, 120) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 157 | #define BLKIOOPT _IO(0x12, 121) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 158 | #define BLKALIGNOFF _IO(0x12, 122) |
| 159 | #define BLKPBSZGET _IO(0x12, 123) |
| 160 | #define BLKDISCARDZEROES _IO(0x12, 124) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 161 | #define BLKSECDISCARD _IO(0x12, 125) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 162 | #define BLKROTATIONAL _IO(0x12, 126) |
| 163 | #define BLKZEROOUT _IO(0x12, 127) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 164 | #define BMAP_IOCTL 1 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 165 | #define FIBMAP _IO(0x00, 1) |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 166 | #define FIGETBSZ _IO(0x00, 2) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 167 | #define FIFREEZE _IOWR('X', 119, int) |
| 168 | #define FITHAW _IOWR('X', 120, int) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 169 | #define FITRIM _IOWR('X', 121, struct fstrim_range) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 170 | #define FICLONE _IOW(0x94, 9, int) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 171 | #define FICLONERANGE _IOW(0x94, 13, struct file_clone_range) |
| 172 | #define FIDEDUPERANGE _IOWR(0x94, 54, struct file_dedupe_range) |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame^] | 173 | #define FSLABEL_MAX 256 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 174 | #define FS_IOC_GETFLAGS _IOR('f', 1, long) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 175 | #define FS_IOC_SETFLAGS _IOW('f', 2, long) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 176 | #define FS_IOC_GETVERSION _IOR('v', 1, long) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 177 | #define FS_IOC_SETVERSION _IOW('v', 2, long) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 178 | #define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 179 | #define FS_IOC32_GETFLAGS _IOR('f', 1, int) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 180 | #define FS_IOC32_SETFLAGS _IOW('f', 2, int) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 181 | #define FS_IOC32_GETVERSION _IOR('v', 1, int) |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 182 | #define FS_IOC32_SETVERSION _IOW('v', 2, int) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 183 | #define FS_IOC_FSGETXATTR _IOR('X', 31, struct fsxattr) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 184 | #define FS_IOC_FSSETXATTR _IOW('X', 32, struct fsxattr) |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame^] | 185 | #define FS_IOC_GETFSLABEL _IOR(0x94, 49, char[FSLABEL_MAX]) |
| 186 | #define FS_IOC_SETFSLABEL _IOW(0x94, 50, char[FSLABEL_MAX]) |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 187 | #define FS_KEY_DESCRIPTOR_SIZE 8 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 188 | #define FS_POLICY_FLAGS_PAD_4 0x00 |
| 189 | #define FS_POLICY_FLAGS_PAD_8 0x01 |
| 190 | #define FS_POLICY_FLAGS_PAD_16 0x02 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 191 | #define FS_POLICY_FLAGS_PAD_32 0x03 |
| 192 | #define FS_POLICY_FLAGS_PAD_MASK 0x03 |
| 193 | #define FS_POLICY_FLAGS_VALID 0x03 |
| 194 | #define FS_ENCRYPTION_MODE_INVALID 0 |
Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 195 | #define FS_ENCRYPTION_MODE_AES_256_XTS 1 |
| 196 | #define FS_ENCRYPTION_MODE_AES_256_GCM 2 |
| 197 | #define FS_ENCRYPTION_MODE_AES_256_CBC 3 |
| 198 | #define FS_ENCRYPTION_MODE_AES_256_CTS 4 |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 199 | #define FS_ENCRYPTION_MODE_AES_128_CBC 5 |
| 200 | #define FS_ENCRYPTION_MODE_AES_128_CTS 6 |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame^] | 201 | #define FS_ENCRYPTION_MODE_SPECK128_256_XTS 7 |
| 202 | #define FS_ENCRYPTION_MODE_SPECK128_256_CTS 8 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 203 | struct fscrypt_policy { |
| 204 | __u8 version; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 205 | __u8 contents_encryption_mode; |
| 206 | __u8 filenames_encryption_mode; |
| 207 | __u8 flags; |
| 208 | __u8 master_key_descriptor[FS_KEY_DESCRIPTOR_SIZE]; |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 209 | }; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 210 | #define FS_IOC_SET_ENCRYPTION_POLICY _IOR('f', 19, struct fscrypt_policy) |
| 211 | #define FS_IOC_GET_ENCRYPTION_PWSALT _IOW('f', 20, __u8[16]) |
| 212 | #define FS_IOC_GET_ENCRYPTION_POLICY _IOW('f', 21, struct fscrypt_policy) |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 213 | #define FS_KEY_DESC_PREFIX "fscrypt:" |
| 214 | #define FS_KEY_DESC_PREFIX_SIZE 8 |
| 215 | #define FS_MAX_KEY_SIZE 64 |
| 216 | struct fscrypt_key { |
| 217 | __u32 mode; |
| 218 | __u8 raw[FS_MAX_KEY_SIZE]; |
| 219 | __u32 size; |
| 220 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 221 | #define FS_SECRM_FL 0x00000001 |
| 222 | #define FS_UNRM_FL 0x00000002 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 223 | #define FS_COMPR_FL 0x00000004 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 224 | #define FS_SYNC_FL 0x00000008 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 225 | #define FS_IMMUTABLE_FL 0x00000010 |
| 226 | #define FS_APPEND_FL 0x00000020 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 227 | #define FS_NODUMP_FL 0x00000040 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 228 | #define FS_NOATIME_FL 0x00000080 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 229 | #define FS_DIRTY_FL 0x00000100 |
| 230 | #define FS_COMPRBLK_FL 0x00000200 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 231 | #define FS_NOCOMP_FL 0x00000400 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 232 | #define FS_ENCRYPT_FL 0x00000800 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 233 | #define FS_BTREE_FL 0x00001000 |
| 234 | #define FS_INDEX_FL 0x00001000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 235 | #define FS_IMAGIC_FL 0x00002000 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 236 | #define FS_JOURNAL_DATA_FL 0x00004000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 237 | #define FS_NOTAIL_FL 0x00008000 |
| 238 | #define FS_DIRSYNC_FL 0x00010000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 239 | #define FS_TOPDIR_FL 0x00020000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 240 | #define FS_HUGE_FILE_FL 0x00040000 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 241 | #define FS_EXTENT_FL 0x00080000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 242 | #define FS_EA_INODE_FL 0x00200000 |
| 243 | #define FS_EOFBLOCKS_FL 0x00400000 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 244 | #define FS_NOCOW_FL 0x00800000 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 245 | #define FS_INLINE_DATA_FL 0x10000000 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 246 | #define FS_PROJINHERIT_FL 0x20000000 |
| 247 | #define FS_RESERVED_FL 0x80000000 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 248 | #define FS_FL_USER_VISIBLE 0x0003DFFF |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 249 | #define FS_FL_USER_MODIFIABLE 0x000380FF |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 250 | #define SYNC_FILE_RANGE_WAIT_BEFORE 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 251 | #define SYNC_FILE_RANGE_WRITE 2 |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 252 | #define SYNC_FILE_RANGE_WAIT_AFTER 4 |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 253 | typedef int __bitwise __kernel_rwf_t; |
| 254 | #define RWF_HIPRI ((__force __kernel_rwf_t) 0x00000001) |
| 255 | #define RWF_DSYNC ((__force __kernel_rwf_t) 0x00000002) |
| 256 | #define RWF_SYNC ((__force __kernel_rwf_t) 0x00000004) |
| 257 | #define RWF_NOWAIT ((__force __kernel_rwf_t) 0x00000008) |
Christopher Ferris | 76a1d45 | 2018-06-27 14:12:29 -0700 | [diff] [blame] | 258 | #define RWF_APPEND ((__force __kernel_rwf_t) 0x00000010) |
| 259 | #define RWF_SUPPORTED (RWF_HIPRI | RWF_DSYNC | RWF_SYNC | RWF_NOWAIT | RWF_APPEND) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 260 | #endif |