lkml.org 
[lkml]   [2002]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [OOPS] 2.5.11 software raid,reiserfs & scsi
From
Date
On Tue, 2002-04-30 at 20:58, Roman Zippel wrote:
> Hi,
>
> On 29 Apr 2002, Tommy Faasen wrote:
>
> > I got an oops on 2.5.11 with an software raid 0 setup on 3 scsi disks,
> > it worked ok on 2.5.8. I get this when booting up and then my /dev/md0
> > isn't found.. If you need more details/help let me know!
>
> The patch below fixes it for me.
> rdev doesn't point to a valid raid partition.
>
Thanks, that did it for me!
> bye, Roman
>
> Index: drivers/md/md.c
> ===================================================================
> RCS file: /usr/src/cvsroot/linux-2.5/drivers/md/md.c,v
> retrieving revision 1.1.1.8
> diff -u -p -r1.1.1.8 md.c
> --- drivers/md/md.c 29 Apr 2002 17:35:50 -0000 1.1.1.8
> +++ drivers/md/md.c 30 Apr 2002 17:52:04 -0000
> @@ -1577,6 +1577,7 @@ static int device_size_calculation(mddev
> if (!md_size[mdidx(mddev)])
> md_size[mdidx(mddev)] = sb->size * data_disks;
>
> + rdev = list_entry(mddev->disks.next, mdk_rdev_t, same_set);
> readahead = (blk_get_readahead(rdev->bdev) * 512) / PAGE_SIZE;
> if (!sb->level || (sb->level == 4) || (sb->level == 5)) {
> readahead = (mddev->sb->chunk_size>>PAGE_SHIFT) * 4 * data_disks;
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.214 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site