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 */ 7 #ifndef _UAPI_LINUX_FIEMAP_H 8 #define _UAPI_LINUX_FIEMAP_H 9 #include <linux/types.h> 10 struct fiemap_extent { 11 __u64 fe_logical; 12 __u64 fe_physical; 13 __u64 fe_length; 14 __u64 fe_reserved64[2]; 15 __u32 fe_flags; 16 __u32 fe_reserved[3]; 17 }; 18 struct fiemap { 19 __u64 fm_start; 20 __u64 fm_length; 21 __u32 fm_flags; 22 __u32 fm_mapped_extents; 23 __u32 fm_extent_count; 24 __u32 fm_reserved; 25 struct fiemap_extent fm_extents[]; 26 }; 27 #define FIEMAP_MAX_OFFSET (~0ULL) 28 #define FIEMAP_FLAG_SYNC 0x00000001 29 #define FIEMAP_FLAG_XATTR 0x00000002 30 #define FIEMAP_FLAG_CACHE 0x00000004 31 #define FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR) 32 #define FIEMAP_EXTENT_LAST 0x00000001 33 #define FIEMAP_EXTENT_UNKNOWN 0x00000002 34 #define FIEMAP_EXTENT_DELALLOC 0x00000004 35 #define FIEMAP_EXTENT_ENCODED 0x00000008 36 #define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080 37 #define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100 38 #define FIEMAP_EXTENT_DATA_INLINE 0x00000200 39 #define FIEMAP_EXTENT_DATA_TAIL 0x00000400 40 #define FIEMAP_EXTENT_UNWRITTEN 0x00000800 41 #define FIEMAP_EXTENT_MERGED 0x00001000 42 #define FIEMAP_EXTENT_SHARED 0x00002000 43 #endif 44