Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/dm_flags.in; do not edit. */
      2 #if !(defined(DM_READONLY_FLAG) || (defined(HAVE_DECL_DM_READONLY_FLAG) && HAVE_DECL_DM_READONLY_FLAG))
      3 # define DM_READONLY_FLAG (1 << 0)
      4 #endif
      5 #if !(defined(DM_SUSPEND_FLAG) || (defined(HAVE_DECL_DM_SUSPEND_FLAG) && HAVE_DECL_DM_SUSPEND_FLAG))
      6 # define DM_SUSPEND_FLAG (1 << 1)
      7 #endif
      8 #if !(defined(DM_EXISTS_FLAG) || (defined(HAVE_DECL_DM_EXISTS_FLAG) && HAVE_DECL_DM_EXISTS_FLAG))
      9 # define DM_EXISTS_FLAG (1 << 2)
     10 #endif
     11 #if !(defined(DM_PERSISTENT_DEV_FLAG) || (defined(HAVE_DECL_DM_PERSISTENT_DEV_FLAG) && HAVE_DECL_DM_PERSISTENT_DEV_FLAG))
     12 # define DM_PERSISTENT_DEV_FLAG (1 << 3)
     13 #endif
     14 #if !(defined(DM_STATUS_TABLE_FLAG) || (defined(HAVE_DECL_DM_STATUS_TABLE_FLAG) && HAVE_DECL_DM_STATUS_TABLE_FLAG))
     15 # define DM_STATUS_TABLE_FLAG (1 << 4)
     16 #endif
     17 #if !(defined(DM_ACTIVE_PRESENT_FLAG) || (defined(HAVE_DECL_DM_ACTIVE_PRESENT_FLAG) && HAVE_DECL_DM_ACTIVE_PRESENT_FLAG))
     18 # define DM_ACTIVE_PRESENT_FLAG (1 << 5)
     19 #endif
     20 #if !(defined(DM_INACTIVE_PRESENT_FLAG) || (defined(HAVE_DECL_DM_INACTIVE_PRESENT_FLAG) && HAVE_DECL_DM_INACTIVE_PRESENT_FLAG))
     21 # define DM_INACTIVE_PRESENT_FLAG (1 << 6)
     22 #endif
     23 #if !(defined(DM_BUFFER_FULL_FLAG) || (defined(HAVE_DECL_DM_BUFFER_FULL_FLAG) && HAVE_DECL_DM_BUFFER_FULL_FLAG))
     24 # define DM_BUFFER_FULL_FLAG (1 << 8)
     25 #endif
     26 #if !(defined(DM_SKIP_BDGET_FLAG) || (defined(HAVE_DECL_DM_SKIP_BDGET_FLAG) && HAVE_DECL_DM_SKIP_BDGET_FLAG))
     27 # define DM_SKIP_BDGET_FLAG (1 << 9)
     28 #endif
     29 #if !(defined(DM_SKIP_LOCKFS_FLAG) || (defined(HAVE_DECL_DM_SKIP_LOCKFS_FLAG) && HAVE_DECL_DM_SKIP_LOCKFS_FLAG))
     30 # define DM_SKIP_LOCKFS_FLAG (1 << 10)
     31 #endif
     32 #if !(defined(DM_NOFLUSH_FLAG) || (defined(HAVE_DECL_DM_NOFLUSH_FLAG) && HAVE_DECL_DM_NOFLUSH_FLAG))
     33 # define DM_NOFLUSH_FLAG (1 << 11)
     34 #endif
     35 #if !(defined(DM_QUERY_INACTIVE_TABLE_FLAG) || (defined(HAVE_DECL_DM_QUERY_INACTIVE_TABLE_FLAG) && HAVE_DECL_DM_QUERY_INACTIVE_TABLE_FLAG))
     36 # define DM_QUERY_INACTIVE_TABLE_FLAG (1 << 12)
     37 #endif
     38 #if !(defined(DM_UEVENT_GENERATED_FLAG) || (defined(HAVE_DECL_DM_UEVENT_GENERATED_FLAG) && HAVE_DECL_DM_UEVENT_GENERATED_FLAG))
     39 # define DM_UEVENT_GENERATED_FLAG (1 << 13)
     40 #endif
     41 #if !(defined(DM_UUID_FLAG) || (defined(HAVE_DECL_DM_UUID_FLAG) && HAVE_DECL_DM_UUID_FLAG))
     42 # define DM_UUID_FLAG (1 << 14)
     43 #endif
     44 #if !(defined(DM_SECURE_DATA_FLAG) || (defined(HAVE_DECL_DM_SECURE_DATA_FLAG) && HAVE_DECL_DM_SECURE_DATA_FLAG))
     45 # define DM_SECURE_DATA_FLAG (1 << 15)
     46 #endif
     47 #if !(defined(DM_DATA_OUT_FLAG) || (defined(HAVE_DECL_DM_DATA_OUT_FLAG) && HAVE_DECL_DM_DATA_OUT_FLAG))
     48 # define DM_DATA_OUT_FLAG (1 << 16)
     49 #endif
     50 #if !(defined(DM_DEFERRED_REMOVE) || (defined(HAVE_DECL_DM_DEFERRED_REMOVE) && HAVE_DECL_DM_DEFERRED_REMOVE))
     51 # define DM_DEFERRED_REMOVE (1 << 17)
     52 #endif
     53 #if !(defined(DM_INTERNAL_SUSPEND_FLAG) || (defined(HAVE_DECL_DM_INTERNAL_SUSPEND_FLAG) && HAVE_DECL_DM_INTERNAL_SUSPEND_FLAG))
     54 # define DM_INTERNAL_SUSPEND_FLAG (1 << 18)
     55 #endif
     56 
     57 #ifdef IN_MPERS
     58 
     59 # error static const struct xlat dm_flags in mpers mode
     60 
     61 #else
     62 
     63 static
     64 const struct xlat dm_flags[] = {
     65  XLAT(DM_READONLY_FLAG),
     66  XLAT(DM_SUSPEND_FLAG),
     67 /* Defined in lvm2/libdm/ioctl/libdm-iface.c */
     68  XLAT(DM_EXISTS_FLAG),
     69  XLAT(DM_PERSISTENT_DEV_FLAG),
     70  XLAT(DM_STATUS_TABLE_FLAG),
     71  XLAT(DM_ACTIVE_PRESENT_FLAG),
     72  XLAT(DM_INACTIVE_PRESENT_FLAG),
     73  XLAT(DM_BUFFER_FULL_FLAG),
     74  XLAT(DM_SKIP_BDGET_FLAG),
     75  XLAT(DM_SKIP_LOCKFS_FLAG),
     76  XLAT(DM_NOFLUSH_FLAG),
     77  XLAT(DM_QUERY_INACTIVE_TABLE_FLAG),
     78  XLAT(DM_UEVENT_GENERATED_FLAG),
     79  XLAT(DM_UUID_FLAG),
     80  XLAT(DM_SECURE_DATA_FLAG),
     81  XLAT(DM_DATA_OUT_FLAG),
     82  XLAT(DM_DEFERRED_REMOVE),
     83  XLAT(DM_INTERNAL_SUSPEND_FLAG),
     84  XLAT_END
     85 };
     86 
     87 #endif /* !IN_MPERS */
     88