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

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

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

Revision 358 Revision 366
1Index: linux-git/drivers/md/Kconfig
2===================================================================
3--- linux-git.orig/drivers/md/Kconfig
4+++ linux-git/drivers/md/Kconfig
5@@ -262,5 +262,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) \
1Index: linux-git/drivers/md/dm-bbr.c 34Index: linux-git/drivers/md/dm-bbr.c
2=================================================================== 35===================================================================
3--- /dev/null 36--- /dev/null
4+++ linux-git/drivers/md/dm-bbr.c 37+++ linux-git/drivers/md/dm-bbr.c
5@@ -0,0 +1,1003 @@ 38@@ -0,0 +1,1003 @@
1134+ u64 nr_replacement_blks; 1167+ u64 nr_replacement_blks;
1135+ u32 blksize_in_sects; 1168+ u32 blksize_in_sects;
1136+ atomic_t in_use_replacement_blks; 1169+ atomic_t in_use_replacement_blks;
1137+}; 1170+};
1138+ 1171+
1139Index: linux-git/drivers/md/Kconfig
1140===================================================================
1141--- linux-git.orig/drivers/md/Kconfig
1142+++ linux-git/drivers/md/Kconfig
1143@@ -236,5 +236,16 @@ config DM_MULTIPATH_EMC
1144 ---help---
1145 Multipath support for EMC CX/AX series hardware.
1146
1147+config BLK_DEV_DM_BBR
1148+ tristate "Bad Block Relocation Device Target (EXPERIMENTAL)"
1149+ depends on BLK_DEV_DM && EXPERIMENTAL
1150+ ---help---
1151+ Support for devices with software-based bad-block-relocation.
1152+
1153+ To compile this as a module, choose M here: the module will be
1154+ called dm-bbr.
1155+
1156+ If unsure, say N.
1157+
1158 endmenu
1159
1160Index: linux-git/drivers/md/Makefile
1161===================================================================
1162--- linux-git.orig/drivers/md/Makefile
1163+++ linux-git/drivers/md/Makefile
1164@@ -37,6 +37,7 @@ obj-$(CONFIG_DM_MULTIPATH_EMC) += dm-emc
1165 obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o
1166 obj-$(CONFIG_DM_MIRROR) += dm-mirror.o
1167 obj-$(CONFIG_DM_ZERO) += dm-zero.o
1168+obj-$(CONFIG_BLK_DEV_DM_BBR) += dm-bbr.o
1169
1170 quiet_cmd_unroll = UNROLL $@
1171 cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \

Legend:
Removed from v.358  
changed lines
  Added in v.366

  ViewVC Help
Powered by ViewVC 1.1.20