mirroring: device failure tolerance
Attached is a patch to provide device failure tolerance/detection for mirroring.
brassow
P.S. A basic write-up of how things work is at http://www.brassow.com/mirroring/index.html
drivers/md/dm-log.h renamed from drivers/md/dm-log.h-patch +16 -0
@@ -9,6 +9,11 @@#include "dm.h" +#define LOG_DIRTY 0 +#define LOG_CLEAN 1/* if a region is clean, it is also in sync */ +#define LOG_NOSYNC 2 +#define LOG_REMOTE_RECOVERING 3 +typedef sector_t region_t ;struct dirty_log_type ;
@@ -23,6 +28,7 @@const char *name;struct module *module;unsigned int use_count; +unsigned int multi_node;int (*ctr)(struct dirty_log *log,struct dm_target *ti,unsigned int argc,char **argv);
@@ -128,3 +134,13 @@void dm_dirty_log_exit (void );#endif +/* +* Overrides for Emacs so that we follow Linus's tabbing style. +* Emacs will notice this stuff at the end of the file and automatically +* adjust the settings for this buffer only. This must remain at the end +* of the file. +* --------------------------------------------------------------------------- +* Local variables: +* c-file-style: "linux" +* End: +*/
drivers/md/dm.c renamed from drivers/md/dm.c-patch +4 -4
@@ -1055,14 +1055,14 @@if (test_bit (DMF_BLOCK_IO , &md->flags)) goto out_read_unlock; - error =__lock_fs (md); -if (error) - goto out_read_unlock; - map =dm_get_table (md);if (map)dm_table_presuspend_targets (map); + error =__lock_fs (md); +if (error) + goto out_read_unlock; +up_read (&md->lock);/*
drivers/md/dm-raid1.c renamed from drivers/md/dm-raid1.c-patch +548 -151
1,156 lines not on this page · raw message
drivers/md/dm-log.c renamed from drivers/md/dm-log.c-patch +85 -22
202 lines not on this page · raw message
This is a repost of the previous patch, but cleans up my if statements ala:
if(dah){ => if (dah) {
and removes the 'emacs' comments at the end of the files...
brassow
drivers/md/dm-log.h renamed from drivers/md/dm-log.h-patch +6 -0
@@ -9,6 +9,11 @@#include "dm.h" +#define LOG_DIRTY 0 +#define LOG_CLEAN 1/* if a region is clean, it is also in sync */ +#define LOG_NOSYNC 2 +#define LOG_REMOTE_RECOVERING 3 +typedef sector_t region_t ;struct dirty_log_type ;
@@ -23,6 +28,7 @@const char *name;struct module *module;unsigned int use_count; +unsigned int multi_node;int (*ctr)(struct dirty_log *log,struct dm_target *ti,unsigned int argc,char **argv);
drivers/md/dm.c renamed from drivers/md/dm.c-patch +4 -4
@@ -1055,14 +1055,14 @@if (test_bit (DMF_BLOCK_IO , &md->flags)) goto out_read_unlock; - error =__lock_fs (md); -if (error) - goto out_read_unlock; - map =dm_get_table (md);if (map)dm_table_presuspend_targets (map); + error =__lock_fs (md); +if (error) + goto out_read_unlock; +up_read (&md->lock);/*
drivers/md/dm-raid1.c renamed from drivers/md/dm-raid1.c-patch +536 -149
1,144 lines not on this page · raw message
drivers/md/dm-log.c renamed from drivers/md/dm-log.c-patch +75 -22
189 lines not on this page · raw message
Quoted 7 lines · Jonathan E Brassow
Attached is a patch to provide device failure tolerance/detection for mirroring.
brassow
P.S. A basic write-up of how things work is at http://www.brassow.com/mirroring/index.html<005.patch>--