[Bug 480496] Re: "raid45: Invalid RAID device offset parameter" error after activating fake raid

Krzysztof Limburski limbur at gmail.com
Sun May 9 21:05:09 UTC 2010


Hi

Sorry for delay. I had a lot of work. Nothing changed with this bug till
today. Bug still exists in latest Ubuntu 10.04 kernel. I have tested
kernel 2.6.32-22. This is a patch which makes my raid5 work again:

diff -ruN linux-source-2.6.32/ubuntu/dm-raid4-5/dm-raid4-5.c linux-source-2.6.32-mod/ubuntu/dm-raid4-5/dm-raid4-5.c
--- linux-source-2.6.32/ubuntu/dm-raid4-5/dm-raid4-5.c	2010-04-28 15:27:01.000000000 +0200
+++ linux-source-2.6.32-mod/ubuntu/dm-raid4-5/dm-raid4-5.c	2010-05-09 17:14:56.778161942 +0200
@@ -3700,8 +3700,7 @@
 		struct raid_dev *dev = rs->dev + *p;
 
 		/* Get offset and device. */
-		if (sscanf(argv[1], "%llu", &tmp) != 1 ||
-		    tmp > rs->set.sectors_per_dev)
+		if (sscanf(argv[1], "%llu", &tmp) != 1) 
 			TI_ERR("Invalid RAID device offset parameter");
 
 		dev->start = tmp;

I will prepare bug report too.

Best Regards
Chris

-- 
"raid45: Invalid RAID device offset parameter" error after activating fake raid
https://bugs.launchpad.net/bugs/480496
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list