• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   __u64 fe_logical;
24   __u64 fe_physical;
25   __u64 fe_length;
26   __u64 fe_reserved64[2];
27   __u32 fe_flags;
28   __u32 fe_reserved[3];
29 };
30 struct fiemap {
31   __u64 fm_start;
32   __u64 fm_length;
33   __u32 fm_flags;
34   __u32 fm_mapped_extents;
35   __u32 fm_extent_count;
36   __u32 fm_reserved;
37   struct fiemap_extent fm_extents[0];
38 };
39 #define FIEMAP_MAX_OFFSET (~0ULL)
40 #define FIEMAP_FLAG_SYNC 0x00000001
41 #define FIEMAP_FLAG_XATTR 0x00000002
42 #define FIEMAP_FLAG_CACHE 0x00000004
43 #define FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR)
44 #define FIEMAP_EXTENT_LAST 0x00000001
45 #define FIEMAP_EXTENT_UNKNOWN 0x00000002
46 #define FIEMAP_EXTENT_DELALLOC 0x00000004
47 #define FIEMAP_EXTENT_ENCODED 0x00000008
48 #define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080
49 #define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100
50 #define FIEMAP_EXTENT_DATA_INLINE 0x00000200
51 #define FIEMAP_EXTENT_DATA_TAIL 0x00000400
52 #define FIEMAP_EXTENT_UNWRITTEN 0x00000800
53 #define FIEMAP_EXTENT_MERGED 0x00001000
54 #define FIEMAP_EXTENT_SHARED 0x00002000
55 #endif
56