]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/device-mapper.h
dm: set DM_TARGET_WILDCARD feature on "error" target
[karo-tx-linux.git] / include / linux / device-mapper.h
index ec1c61c87d8974897af2be54af23588f14746777..87d50ecbc9df1aa317c95cdd12339152d49fc4fe 100644 (file)
@@ -189,6 +189,13 @@ struct target_type {
 #define DM_TARGET_IMMUTABLE            0x00000004
 #define dm_target_is_immutable(type)   ((type)->features & DM_TARGET_IMMUTABLE)
 
+/*
+ * Indicates that a target may replace any target; even immutable targets.
+ * .map, .map_rq, .clone_and_map_rq and .release_clone_rq are all defined.
+ */
+#define DM_TARGET_WILDCARD             0x00000008
+#define dm_target_is_wildcard(type)    ((type)->features & DM_TARGET_WILDCARD)
+
 /*
  * Some targets need to be sent the same WRITE bio severals times so
  * that they can send copies of it to different devices.  This function