Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/fiemap_extent_flags.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(FIEMAP_EXTENT_LAST) || (defined(HAVE_DECL_FIEMAP_EXTENT_LAST) && HAVE_DECL_FIEMAP_EXTENT_LAST)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((FIEMAP_EXTENT_LAST) == (0x00000001), "FIEMAP_EXTENT_LAST != 0x00000001");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define FIEMAP_EXTENT_LAST 0x00000001
     12 #endif
     13 #if defined(FIEMAP_EXTENT_UNKNOWN) || (defined(HAVE_DECL_FIEMAP_EXTENT_UNKNOWN) && HAVE_DECL_FIEMAP_EXTENT_UNKNOWN)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((FIEMAP_EXTENT_UNKNOWN) == (0x00000002), "FIEMAP_EXTENT_UNKNOWN != 0x00000002");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define FIEMAP_EXTENT_UNKNOWN 0x00000002
     19 #endif
     20 #if defined(FIEMAP_EXTENT_DELALLOC) || (defined(HAVE_DECL_FIEMAP_EXTENT_DELALLOC) && HAVE_DECL_FIEMAP_EXTENT_DELALLOC)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((FIEMAP_EXTENT_DELALLOC) == (0x00000004), "FIEMAP_EXTENT_DELALLOC != 0x00000004");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define FIEMAP_EXTENT_DELALLOC 0x00000004
     26 #endif
     27 #if defined(FIEMAP_EXTENT_ENCODED) || (defined(HAVE_DECL_FIEMAP_EXTENT_ENCODED) && HAVE_DECL_FIEMAP_EXTENT_ENCODED)
     28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     29 static_assert((FIEMAP_EXTENT_ENCODED) == (0x00000008), "FIEMAP_EXTENT_ENCODED != 0x00000008");
     30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     31 #else
     32 # define FIEMAP_EXTENT_ENCODED 0x00000008
     33 #endif
     34 #if defined(FIEMAP_EXTENT_DATA_ENCRYPTED) || (defined(HAVE_DECL_FIEMAP_EXTENT_DATA_ENCRYPTED) && HAVE_DECL_FIEMAP_EXTENT_DATA_ENCRYPTED)
     35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     36 static_assert((FIEMAP_EXTENT_DATA_ENCRYPTED) == (0x00000080), "FIEMAP_EXTENT_DATA_ENCRYPTED != 0x00000080");
     37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     38 #else
     39 # define FIEMAP_EXTENT_DATA_ENCRYPTED 0x00000080
     40 #endif
     41 #if defined(FIEMAP_EXTENT_NOT_ALIGNED) || (defined(HAVE_DECL_FIEMAP_EXTENT_NOT_ALIGNED) && HAVE_DECL_FIEMAP_EXTENT_NOT_ALIGNED)
     42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     43 static_assert((FIEMAP_EXTENT_NOT_ALIGNED) == (0x00000100), "FIEMAP_EXTENT_NOT_ALIGNED != 0x00000100");
     44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     45 #else
     46 # define FIEMAP_EXTENT_NOT_ALIGNED 0x00000100
     47 #endif
     48 #if defined(FIEMAP_EXTENT_DATA_INLINE) || (defined(HAVE_DECL_FIEMAP_EXTENT_DATA_INLINE) && HAVE_DECL_FIEMAP_EXTENT_DATA_INLINE)
     49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     50 static_assert((FIEMAP_EXTENT_DATA_INLINE) == (0x00000200), "FIEMAP_EXTENT_DATA_INLINE != 0x00000200");
     51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     52 #else
     53 # define FIEMAP_EXTENT_DATA_INLINE 0x00000200
     54 #endif
     55 #if defined(FIEMAP_EXTENT_DATA_TAIL) || (defined(HAVE_DECL_FIEMAP_EXTENT_DATA_TAIL) && HAVE_DECL_FIEMAP_EXTENT_DATA_TAIL)
     56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     57 static_assert((FIEMAP_EXTENT_DATA_TAIL) == (0x00000400), "FIEMAP_EXTENT_DATA_TAIL != 0x00000400");
     58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     59 #else
     60 # define FIEMAP_EXTENT_DATA_TAIL 0x00000400
     61 #endif
     62 #if defined(FIEMAP_EXTENT_UNWRITTEN) || (defined(HAVE_DECL_FIEMAP_EXTENT_UNWRITTEN) && HAVE_DECL_FIEMAP_EXTENT_UNWRITTEN)
     63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     64 static_assert((FIEMAP_EXTENT_UNWRITTEN) == (0x00000800), "FIEMAP_EXTENT_UNWRITTEN != 0x00000800");
     65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     66 #else
     67 # define FIEMAP_EXTENT_UNWRITTEN 0x00000800
     68 #endif
     69 #if defined(FIEMAP_EXTENT_MERGED) || (defined(HAVE_DECL_FIEMAP_EXTENT_MERGED) && HAVE_DECL_FIEMAP_EXTENT_MERGED)
     70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     71 static_assert((FIEMAP_EXTENT_MERGED) == (0x00001000), "FIEMAP_EXTENT_MERGED != 0x00001000");
     72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     73 #else
     74 # define FIEMAP_EXTENT_MERGED 0x00001000
     75 #endif
     76 #if defined(FIEMAP_EXTENT_SHARED) || (defined(HAVE_DECL_FIEMAP_EXTENT_SHARED) && HAVE_DECL_FIEMAP_EXTENT_SHARED)
     77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     78 static_assert((FIEMAP_EXTENT_SHARED) == (0x00002000), "FIEMAP_EXTENT_SHARED != 0x00002000");
     79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     80 #else
     81 # define FIEMAP_EXTENT_SHARED 0x00002000
     82 #endif
     83 
     84 #ifndef XLAT_MACROS_ONLY
     85 
     86 # ifdef IN_MPERS
     87 
     88 #  error static const struct xlat fiemap_extent_flags in mpers mode
     89 
     90 # else
     91 
     92 static
     93 const struct xlat fiemap_extent_flags[] = {
     94  XLAT(FIEMAP_EXTENT_LAST),
     95  XLAT(FIEMAP_EXTENT_UNKNOWN),
     96  XLAT(FIEMAP_EXTENT_DELALLOC),
     97  XLAT(FIEMAP_EXTENT_ENCODED),
     98  XLAT(FIEMAP_EXTENT_DATA_ENCRYPTED),
     99  XLAT(FIEMAP_EXTENT_NOT_ALIGNED),
    100  XLAT(FIEMAP_EXTENT_DATA_INLINE),
    101  XLAT(FIEMAP_EXTENT_DATA_TAIL),
    102  XLAT(FIEMAP_EXTENT_UNWRITTEN),
    103  XLAT(FIEMAP_EXTENT_MERGED),
    104  XLAT(FIEMAP_EXTENT_SHARED),
    105  XLAT_END
    106 };
    107 
    108 # endif /* !IN_MPERS */
    109 
    110 #endif /* !XLAT_MACROS_ONLY */
    111