blob: d41a87d0a892fd699683a75122cbaf06828c11c1 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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>
22struct fiemap_extent {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 __u64 fe_logical;
25 __u64 fe_physical;
26 __u64 fe_length;
27 __u64 fe_reserved64[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u32 fe_flags;
30 __u32 fe_reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -070031};
32struct fiemap {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u64 fm_start;
35 __u64 fm_length;
36 __u32 fm_flags;
37 __u32 fm_mapped_extents;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 fm_extent_count;
40 __u32 fm_reserved;
41 struct fiemap_extent fm_extents[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
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
Christopher Ferris38062f92014-07-09 15:33:25 -070047#define FIEMAP_FLAG_CACHE 0x00000004
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049#define FIEMAP_FLAGS_COMPAT (FIEMAP_FLAG_SYNC | FIEMAP_FLAG_XATTR)
Ben Cheng655a7c02013-10-16 16:09:24 -070050#define FIEMAP_EXTENT_LAST 0x00000001
51#define FIEMAP_EXTENT_UNKNOWN 0x00000002
52#define FIEMAP_EXTENT_DELALLOC 0x00000004
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070054#define FIEMAP_EXTENT_ENCODED 0x00000008
Ben Cheng655a7c02013-10-16 16:09:24 -070055#define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080
56#define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100
57#define FIEMAP_EXTENT_DATA_INLINE 0x00000200
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070059#define FIEMAP_EXTENT_DATA_TAIL 0x00000400
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define FIEMAP_EXTENT_UNWRITTEN 0x00000800
61#define FIEMAP_EXTENT_MERGED 0x00001000
62#define FIEMAP_EXTENT_SHARED 0x00002000
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064#endif