aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
authorKevin Corry <kevcorry@us.ibm.com>2006-06-26 03:27:28 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 12:58:35 -0400
commit702ca6f0be9ef95087ee2c9f31e6517492554483 (patch)
treee59b9a1e71e68a9f0230d12a10931b60da1ac9c4 /drivers/md/dm-raid1.c
parent143535396c7ebd9395a931a000b3963f457712b8 (diff)
[PATCH] dm mirror log: sector size fix
On-disk logs for dm-mirror devices are currently hard-coded to use 512 byte hard-sector-sizes. This patch fixes dm-log so it will work with devices with non-512-byte hard-sector-sizes. To maintain full compatibility, instead of moving the clean-bits bitset to a bitset, and enlarges the disk-header buffer to encompass both the header and the bitset. The I/O routines for the bitset are removed, and the I/O routines for the disk-header now also read/write the bitset. Signed-off-by: Kevin Corry <kevcorry@us.ibm.com> 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>
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 346f3a59e776..84f2ed6d9c5b 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1220,7 +1220,7 @@ static int mirror_status(struct dm_target *ti, status_type_t type,
1220 1220
1221static struct target_type mirror_target = { 1221static struct target_type mirror_target = {
1222 .name = "mirror", 1222 .name = "mirror",
1223 .version = {1, 0, 1}, 1223 .version = {1, 0, 2},
1224 .module = THIS_MODULE, 1224 .module = THIS_MODULE,
1225 .ctr = mirror_ctr, 1225 .ctr = mirror_ctr,
1226 .dtr = mirror_dtr, 1226 .dtr = mirror_dtr,