diff options
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index cc58e2d7c032..98f34b886f95 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -173,6 +173,13 @@ struct target_type { | |||
173 | #define dm_target_always_writeable(type) \ | 173 | #define dm_target_always_writeable(type) \ |
174 | ((type)->features & DM_TARGET_ALWAYS_WRITEABLE) | 174 | ((type)->features & DM_TARGET_ALWAYS_WRITEABLE) |
175 | 175 | ||
176 | /* | ||
177 | * Any device that contains a table with an instance of this target may never | ||
178 | * have tables containing any different target type. | ||
179 | */ | ||
180 | #define DM_TARGET_IMMUTABLE 0x00000004 | ||
181 | #define dm_target_is_immutable(type) ((type)->features & DM_TARGET_IMMUTABLE) | ||
182 | |||
176 | struct dm_target { | 183 | struct dm_target { |
177 | struct dm_table *table; | 184 | struct dm_table *table; |
178 | struct target_type *type; | 185 | struct target_type *type; |