[ENBD] fr1 hangs when trying to access raid device..

Peter T. Breuer enbd@lists.community.tummy.com
Tue, 4 Feb 2003 21:07:35 +0100 (MET)


The only other thing that occurs to me immediately is that you are
trying major 9, and I have never tried anything but the natural major
(240). Maybe I forgot to set one of the major values ...


If I did, it would be in the gendisk struct. Try this.


                fr1_hd_struct[lo->index].start_sect = 0;
                fr1_sizes[lo->index] = lo->size >> 10;
+               fr1_gendisk.major = major;
                register_disk(&fr1_gendisk, MKDEV(major,lo->index),
                         1, &fr1_blkops, (unsigned long)(lo->size >> 10));

                read_ahead[major] = rahead;

The conclusive proof would be if you applied the raidtools patch and
ran on major 240, as I did when testing.

Peter