]> err.no Git - linux-2.6/blobdiff - include/linux/device-mapper.h
[PATCH] md/bitmap: remove bitmap writeback daemon
[linux-2.6] / include / linux / device-mapper.h
index 010c8c5eeb37a24503f9c06c41a04e13c5c3d704..e3d1c33d155883797f41d33b0096e06329d8de82 100644 (file)
@@ -171,6 +171,7 @@ int dm_wait_event(struct mapped_device *md, int event_nr);
 /*
  * Info functions.
  */
+const char *dm_device_name(struct mapped_device *md);
 struct gendisk *dm_disk(struct mapped_device *md);
 int dm_suspended(struct mapped_device *md);
 
@@ -227,5 +228,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 */