mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
17b2f66f2a
commit
c2ade42dd3
2 changed files with 44 additions and 0 deletions
|
@ -227,5 +227,11 @@ void dm_table_event(struct dm_table *t);
|
|||
*/
|
||||
int dm_swap_table(struct mapped_device *md, struct dm_table *t);
|
||||
|
||||
/*
|
||||
* Prepare a table for a device that will error all I/O.
|
||||
* To make it active, call dm_suspend(), dm_swap_table() then dm_resume().
|
||||
*/
|
||||
int dm_create_error_table(struct dm_table **result, struct mapped_device *md);
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _LINUX_DEVICE_MAPPER_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue