Re: Software RAID Stopped Working With Aurora Kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday May 21, cwebster@ec.rr.com wrote:
> 
> This looks much better, but not just right. I would expect that the list
> following "Chunk Size" would be close to the /etc/raidtab that was being
> used prior to the Aurora upgrade when it was last working. At any rate,
> the "this" device and the last device listed are definitely not correct.
> I'm not sure what "this" should be, but I assume it should list
> parameters for the device being queried. 

Thanks for the detail.  I see my mistake.
Please apply this patch and try again.. (memcpy counts in words, even
when I give it pointers to __u32's (ofcourse!)).

NeilBrown

--- Examine.c	2002/05/21 12:07:44	1.1
+++ Examine.c	2002/05/21 12:08:01
@@ -170,7 +170,7 @@
 				__u32 *sb32 = (__u32*)&super;
 				memcpy(sb32+MD_SB_GENERIC_CONSTANT_WORDS+7,
 				       sb32+MD_SB_GENERIC_CONSTANT_WORDS+7+1,
-				       MD_SB_WORDS - (MD_SB_GENERIC_CONSTANT_WORDS+7+1));
+				       (MD_SB_WORDS - (MD_SB_GENERIC_CONSTANT_WORDS+7+1))*4);
 				printf (" --- adjusting superblock for 2.2/sparc compatability ---\n");
 			}
 			printf("         Events : %d.%d\n", super.events_hi, super.events_lo);
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux