diff options
Diffstat (limited to 'include')
-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 294e78a7fccd..cc58e2d7c032 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -166,6 +166,13 @@ struct target_type { | |||
166 | #define DM_TARGET_SINGLETON 0x00000001 | 166 | #define DM_TARGET_SINGLETON 0x00000001 |
167 | #define dm_target_needs_singleton(type) ((type)->features & DM_TARGET_SINGLETON) | 167 | #define dm_target_needs_singleton(type) ((type)->features & DM_TARGET_SINGLETON) |
168 | 168 | ||
169 | /* | ||
170 | * Indicates that a target does not support read-only devices. | ||
171 | */ | ||
172 | #define DM_TARGET_ALWAYS_WRITEABLE 0x00000002 | ||
173 | #define dm_target_always_writeable(type) \ | ||
174 | ((type)->features & DM_TARGET_ALWAYS_WRITEABLE) | ||
175 | |||
169 | struct dm_target { | 176 | struct dm_target { |
170 | struct dm_table *table; | 177 | struct dm_table *table; |
171 | struct target_type *type; | 178 | struct target_type *type; |