Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Christopher Ferris | 8177cdf | 2020-08-03 11:53:55 -0700 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_FIEMAP_H |
| 8 | #define _UAPI_LINUX_FIEMAP_H |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 9 | #include <linux/types.h> |
| 10 | struct fiemap_extent { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 11 | __u64 fe_logical; |
| 12 | __u64 fe_physical; |
| 13 | __u64 fe_length; |
| 14 | __u64 fe_reserved64[2]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | __u32 fe_flags; |
| 16 | __u32 fe_reserved[3]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 17 | }; |
| 18 | struct fiemap { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 19 | __u64 fm_start; |
| 20 | __u64 fm_length; |
| 21 | __u32 fm_flags; |
| 22 | __u32 fm_mapped_extents; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | __u32 fm_extent_count; |
| 24 | __u32 fm_reserved; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 25 | struct fiemap_extent fm_extents[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 26 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define FIEMAP_MAX_OFFSET (~0ULL) |
| 28 | #define FIEMAP_FLAG_SYNC 0x00000001 |
| 29 | #define FIEMAP_FLAG_XATTR 0x00000002 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 30 | #define FIEMAP_FLAG_CACHE 0x00000004 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 31 | #define FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 32 | #define FIEMAP_EXTENT_LAST 0x00000001 |
| 33 | #define FIEMAP_EXTENT_UNKNOWN 0x00000002 |
| 34 | #define FIEMAP_EXTENT_DELALLOC 0x00000004 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 35 | #define FIEMAP_EXTENT_ENCODED 0x00000008 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 36 | #define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080 |
| 37 | #define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100 |
| 38 | #define FIEMAP_EXTENT_DATA_INLINE 0x00000200 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 39 | #define FIEMAP_EXTENT_DATA_TAIL 0x00000400 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | #define FIEMAP_EXTENT_UNWRITTEN 0x00000800 |
| 41 | #define FIEMAP_EXTENT_MERGED 0x00001000 |
| 42 | #define FIEMAP_EXTENT_SHARED 0x00002000 |
Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 43 | #endif |