/[linux-patches]/genpatches-2.6/trunk/2.6.19/4105_dm-bbr.patch
Gentoo

Diff of /genpatches-2.6/trunk/2.6.19/4105_dm-bbr.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

genpatches-2.6/trunk/2.6.16-pre/4305_dm-bbr.patch Revision 269 genpatches-2.6/trunk/2.6.17-pre/4105_dm-bbr.patch Revision 376
1diff -urNpX dontdiff linux-2.6.12-rc2-gentoo/drivers/md/dm-bbr.c linux-dsd/drivers/md/dm-bbr.c 1Index: linux-git/drivers/md/Kconfig
2--- linux-2.6.12-rc2-gentoo/drivers/md/dm-bbr.c 1970-01-01 01:00:00.000000000 +0100 2===================================================================
3+++ linux-dsd/drivers/md/dm-bbr.c 2005-04-06 10:06:16.000000000 +0100 3--- linux-git.orig/drivers/md/Kconfig
4+++ linux-git/drivers/md/Kconfig
5@@ -263,5 +263,16 @@ config DM_MULTIPATH_EMC
6 ---help---
7 Multipath support for EMC CX/AX series hardware.
8
9+config BLK_DEV_DM_BBR
10+ tristate "Bad Block Relocation Device Target (EXPERIMENTAL)"
11+ depends on BLK_DEV_DM && EXPERIMENTAL
12+ ---help---
13+ Support for devices with software-based bad-block-relocation.
14+
15+ To compile this as a module, choose M here: the module will be
16+ called dm-bbr.
17+
18+ If unsure, say N.
19+
20 endmenu
21
22Index: linux-git/drivers/md/Makefile
23===================================================================
24--- linux-git.orig/drivers/md/Makefile
25+++ linux-git/drivers/md/Makefile
26@@ -37,6 +37,7 @@ obj-$(CONFIG_DM_MULTIPATH_EMC) += dm-emc
27 obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o
28 obj-$(CONFIG_DM_MIRROR) += dm-mirror.o
29 obj-$(CONFIG_DM_ZERO) += dm-zero.o
30+obj-$(CONFIG_BLK_DEV_DM_BBR) += dm-bbr.o
31
32 quiet_cmd_unroll = UNROLL $@
33 cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \
34Index: linux-git/drivers/md/dm-bbr.c
35===================================================================
36--- /dev/null
37+++ linux-git/drivers/md/dm-bbr.c
4@@ -0,0 +1,1003 @@ 38@@ -0,0 +1,1003 @@
5+/* 39+/*
6+ * (C) Copyright IBM Corp. 2002, 2004 40+ * (C) Copyright IBM Corp. 2002, 2004
7+ * 41+ *
8+ * This program is free software; you can redistribute it and/or modify 42+ * This program is free software; you can redistribute it and/or modify
652+ return rc; 686+ return rc;
653+ } 687+ }
654+ } 688+ }
655+ offset += (lsn << SECTOR_SHIFT); 689+ offset += (lsn << SECTOR_SHIFT);
656+ } 690+ }
657+ 691+
658+ /* Process the remapped sector. */ 692+ /* Process the remapped sector. */
659+ job.sector = remapped_lsn; 693+ job.sector = remapped_lsn;
660+ job.count = 1; 694+ job.count = 1;
661+ rc = dm_io_sync(1, &job, rw, &pl, offset, &error); 695+ rc = dm_io_sync(1, &job, rw, &pl, offset, &error);
662+ if (rc) { 696+ if (rc) {
1003+} 1037+}
1004+ 1038+
1005+module_init(dm_bbr_init); 1039+module_init(dm_bbr_init);
1006+module_exit(dm_bbr_exit); 1040+module_exit(dm_bbr_exit);
1007+MODULE_LICENSE("GPL"); 1041+MODULE_LICENSE("GPL");
1008diff -urNpX dontdiff linux-2.6.12-rc2-gentoo/drivers/md/dm-bbr.h linux-dsd/drivers/md/dm-bbr.h 1042Index: linux-git/drivers/md/dm-bbr.h
1009--- linux-2.6.12-rc2-gentoo/drivers/md/dm-bbr.h 1970-01-01 01:00:00.000000000 +0100 1043===================================================================
1010+++ linux-dsd/drivers/md/dm-bbr.h 2005-04-06 10:06:16.000000000 +0100 1044--- /dev/null
1045+++ linux-git/drivers/md/dm-bbr.h
1011@@ -0,0 +1,125 @@ 1046@@ -0,0 +1,125 @@
1012+/* 1047+/*
1013+ * (C) Copyright IBM Corp. 2002, 2004 1048+ * (C) Copyright IBM Corp. 2002, 2004
1014+ * 1049+ *
1015+ * This program is free software; you can redistribute it and/or modify 1050+ * This program is free software; you can redistribute it and/or modify
1132+ u64 nr_replacement_blks; 1167+ u64 nr_replacement_blks;
1133+ u32 blksize_in_sects; 1168+ u32 blksize_in_sects;
1134+ atomic_t in_use_replacement_blks; 1169+ atomic_t in_use_replacement_blks;
1135+}; 1170+};
1136+ 1171+
1137diff -urNpX dontdiff linux-2.6.12-rc2-gentoo/drivers/md/Kconfig linux-dsd/drivers/md/Kconfig
1138--- linux-2.6.12-rc2-gentoo/drivers/md/Kconfig 2005-04-06 09:46:58.000000000 +0100
1139+++ linux-dsd/drivers/md/Kconfig 2005-04-06 10:07:02.000000000 +0100
1140@@ -236,5 +236,16 @@ config DM_MULTIPATH_EMC
1141 ---help---
1142 Multipath support for EMC CX/AX series hardware.
1143
1144+config BLK_DEV_DM_BBR
1145+ tristate "Bad Block Relocation Device Target (EXPERIMENTAL)"
1146+ depends on BLK_DEV_DM && EXPERIMENTAL
1147+ ---help---
1148+ Support for devices with software-based bad-block-relocation.
1149+
1150+ To compile this as a module, choose M here: the module will be
1151+ called dm-bbr.
1152+
1153+ If unsure, say N.
1154+
1155 endmenu
1156
1157diff -urNpX dontdiff linux-2.6.12-rc2-gentoo/drivers/md/Makefile linux-dsd/drivers/md/Makefile
1158--- linux-2.6.12-rc2-gentoo/drivers/md/Makefile 2005-04-06 09:46:58.000000000 +0100
1159+++ linux-dsd/drivers/md/Makefile 2005-04-06 10:06:16.000000000 +0100
1160@@ -36,6 +36,7 @@ obj-$(CONFIG_DM_MULTIPATH_EMC) += dm-emc
1161 obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o
1162 obj-$(CONFIG_DM_MIRROR) += dm-mirror.o
1163 obj-$(CONFIG_DM_ZERO) += dm-zero.o
1164+obj-$(CONFIG_BLK_DEV_DM_BBR) += dm-bbr.o
1165
1166 quiet_cmd_unroll = UNROLL $@
1167 cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \

Legend:
Removed from v.269  
changed lines
  Added in v.376

  ViewVC Help
Powered by ViewVC 1.1.20