aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-06-26 03:27:33 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 12:58:36 -0400
commitc2ade42dd35466d90aa6fc7cc717f396e165492f (patch)
tree245baeabfea43a3b2654adb962e776a877da0059 /include/linux/device-mapper.h
parent17b2f66f2a39a4e4d1ed456f35ee3bb598e41d35 (diff)
[PATCH] dm: create error table
Add a library function dm_create_error_table() to create a table that rejects any I/O sent to a device with EIO. Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index 010c8c5eeb37..61103d2bc244 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -227,5 +227,11 @@ void dm_table_event(struct dm_table *t);
227 */ 227 */
228int dm_swap_table(struct mapped_device *md, struct dm_table *t); 228int dm_swap_table(struct mapped_device *md, struct dm_table *t);
229 229
230/*
231 * Prepare a table for a device that will error all I/O.
232 * To make it active, call dm_suspend(), dm_swap_table() then dm_resume().
233 */
234int dm_create_error_table(struct dm_table **result, struct mapped_device *md);
235
230#endif /* __KERNEL__ */ 236#endif /* __KERNEL__ */
231#endif /* _LINUX_DEVICE_MAPPER_H */ 237#endif /* _LINUX_DEVICE_MAPPER_H */