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_FIEMAP_H
20 #define _LINUX_FIEMAP_H
21 #include <linux/types.h>
22 struct fiemap_extent {
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24   __u64 fe_logical;
25   __u64 fe_physical;
26   __u64 fe_length;
27   __u64 fe_reserved64[2];
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   __u32 fe_flags;
30   __u32 fe_reserved[3];
31 };
32 struct fiemap {
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   __u64 fm_start;
35   __u64 fm_length;
36   __u32 fm_flags;
37   __u32 fm_mapped_extents;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __u32 fm_extent_count;
40   __u32 fm_reserved;
41   struct fiemap_extent fm_extents[0];
42 };
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define FIEMAP_MAX_OFFSET (~0ULL)
45 #define FIEMAP_FLAG_SYNC 0x00000001
46 #define FIEMAP_FLAG_XATTR 0x00000002
47 #define FIEMAP_FLAG_CACHE 0x00000004
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR)
50 #define FIEMAP_EXTENT_LAST 0x00000001
51 #define FIEMAP_EXTENT_UNKNOWN 0x00000002
52 #define FIEMAP_EXTENT_DELALLOC 0x00000004
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define FIEMAP_EXTENT_ENCODED 0x00000008
55 #define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080
56 #define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100
57 #define FIEMAP_EXTENT_DATA_INLINE 0x00000200
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define FIEMAP_EXTENT_DATA_TAIL 0x00000400
60 #define FIEMAP_EXTENT_UNWRITTEN 0x00000800
61 #define FIEMAP_EXTENT_MERGED 0x00001000
62 #define FIEMAP_EXTENT_SHARED 0x00002000
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #endif
65