Re: Failure autodetecting raid0 partitions

2000-07-16 Thread Michael Robinton

On Sat, 15 Jul 2000, Chris Mauritz wrote:

  From [EMAIL PROTECTED] Sat Jul 15 19:29:44 2000
  
  Edward Schernau wrote:
  
   Wow, an email CCed to Linus himself!  *faint*
  
  Well do you know of another way to get a patch into the kernel ??
 
 So if Linus gets hit by a bus (or a fast moving hari krishna), how
 are folks to get things into the kernel then?
 
You send it to Alan Cox



Re: Failure autodetecting raid0 partitions

2000-07-15 Thread Kenneth Johansson

Anders Qvist wrote:

 I have a 2.2.11+intl+raid0.90 successfully mounting its ext2 root file
 system off /dev/md0, which is autodetected by the kernel. A 2.4-test2
 kernel compiled with CONFIG_AUTODETECT_RAID fails to autodetect my
 partitons when I write it to a floppy and boot it. It just says
 autodetecting RAID arrays ... autorun DONE.

 There is probably something I don't know. I'd be grateful if someone told
 me what it was. NB: I'm not on the list.

The autodetection was not done on partitions inside an extended partition.

This patch fixes that.





--- linux-2.4.0-test4/fs/partitions/msdos.c Sat Jul 15 13:22:29 2000
+++ linux/fs/partitions/msdos.c Sat Jul 15 21:03:38 2000
@@ -136,6 +136,12 @@
add_gd_partition(hd, current_minor,
 this_sector+START_SECT(p)*sector_size,
 NR_SECTS(p)*sector_size);
+#if CONFIG_BLK_DEV_MD  CONFIG_AUTODETECT_RAID
+   if (SYS_IND(p) == LINUX_RAID_PARTITION) {
+   md_autodetect_dev(MKDEV(hd-major,current_minor));
+   }
+#endif
+
current_minor++;
loopct = 0;
if ((current_minor  mask) == 0)



Re: Failure autodetecting raid0 partitions

2000-07-15 Thread Edward Schernau

Wow, an email CCed to Linus himself!  *faint*



Re: Failure autodetecting raid0 partitions

2000-07-15 Thread Kenneth Johansson

Edward Schernau wrote:

 Wow, an email CCed to Linus himself!  *faint*

Well do you know of another way to get a patch into the kernel ??





Re: Failure autodetecting raid0 partitions

2000-07-15 Thread Chris Mauritz

 From [EMAIL PROTECTED] Sat Jul 15 19:29:44 2000
 
 Edward Schernau wrote:
 
  Wow, an email CCed to Linus himself!  *faint*
 
 Well do you know of another way to get a patch into the kernel ??

So if Linus gets hit by a bus (or a fast moving hari krishna), how
are folks to get things into the kernel then?

C
-- 
Christopher Mauritz
[EMAIL PROTECTED]



Re: Failure autodetecting raid0 partitions

2000-07-15 Thread Seth Vidal

 So if Linus gets hit by a bus (or a fast moving hari krishna), how
 are folks to get things into the kernel then?

Probably Alan.

-sv





Failure autodetecting raid0 partitions

2000-07-08 Thread Anders Qvist

I have a 2.2.11+intl+raid0.90 successfully mounting its ext2 root file
system off /dev/md0, which is autodetected by the kernel. A 2.4-test2
kernel compiled with CONFIG_AUTODETECT_RAID fails to autodetect my 
partitons when I write it to a floppy and boot it. It just says
autodetecting RAID arrays ... autorun DONE.

There is probably something I don't know. I'd be grateful if someone told
me what it was. NB: I'm not on the list.

System info:

PC: i686, 440LX, NCR 53c875 (rev 3), 2x FUJITSU MAB3045SP.

   Device BootStart   EndBlocks   Id  System
/dev/sda1   * 115 65534   83  Linux
/dev/sda21630 65565   82  Linux swap
/dev/sda331   434   17658845  Extended
/dev/sda4   435  1017   2548293   83  Linux
/dev/sda531   434   1765853   fd  Linux raid autodetect

   Device BootStart   EndBlocks   Id  System
/dev/sdb1 115 65534   82  Linux swap
/dev/sdb21630 65565   82  Linux swap
/dev/sdb331  1017   43141775  Extended
/dev/sdb531   434   1765853   fd  Linux raid autodetect
/dev/sdb6   435   674   1049009   83  Linux
/dev/sdb7   675  1017   1499222   83  Linux

(/dev/sda1 contains the kernel and an emergency boot partition)

Working 2.2.11 kernel autodetect message:

Jul  3 17:22:33 vanity kernel: autodetecting RAID arrays
Jul  3 17:22:33 vanity kernel: (read) sda5's sb offset: 1765760 [events: 003c]
Jul  3 17:22:33 vanity kernel: (read) sdb5's sb offset: 1765760 [events: 003c]
Jul  3 17:22:33 vanity kernel: autorun ...
Jul  3 17:22:33 vanity kernel: considering sdb5 ...
Jul  3 17:22:33 vanity kernel:   adding sdb5 ...
Jul  3 17:22:33 vanity kernel:   adding sda5 ...
Jul  3 17:22:33 vanity kernel: created md0
Jul  3 17:22:33 vanity kernel: bindsda5,1
Jul  3 17:22:33 vanity kernel: bindsdb5,2
Jul  3 17:22:33 vanity kernel: running: sdb5sda5
Jul  3 17:22:33 vanity kernel: now!
Jul  3 17:22:33 vanity kernel: sdb5's event counter: 003c
Jul  3 17:22:33 vanity kernel: sda5's event counter: 003c
Jul  3 17:22:33 vanity kernel: mask fff0
Jul  3 17:22:33 vanity kernel:  rdev-size: 1765760
Jul  3 17:22:33 vanity kernel:  masked rdev-size: 1765760
Jul  3 17:22:33 vanity kernel:   new md_size: 1765760
Jul  3 17:22:33 vanity kernel:  rdev-size: 1765760
Jul  3 17:22:33 vanity kernel:  masked rdev-size: 1765760
Jul  3 17:22:33 vanity kernel:   new md_size: 3531520
Jul  3 17:22:33 vanity kernel: md0: max total readahead window set to 256k
Jul  3 17:22:33 vanity kernel: md0: 2 data-disks, max readahead per data-disk: 128k
Jul  3 17:22:33 vanity kernel: raid0: looking at sda5
Jul  3 17:22:33 vanity kernel: raid0:   comparing sda5(1765760) with sda5(1765760)
Jul  3 17:22:33 vanity kernel: raid0:   END
Jul  3 17:22:33 vanity kernel: raid0:   == UNIQUE
Jul  3 17:22:33 vanity kernel: raid0: 1 zones
Jul  3 17:22:33 vanity kernel: raid0: looking at sdb5
Jul  3 17:22:33 vanity kernel: raid0:   comparing sdb5(1765760) with sda5(1765760)
Jul  3 17:22:33 vanity kernel: raid0:   EQUAL
Jul  3 17:22:33 vanity kernel: raid0: FINAL 1 zones
Jul  3 17:22:33 vanity kernel: zone 0
Jul  3 17:22:33 vanity kernel:  checking sda5 ... contained as device 0
Jul  3 17:22:33 vanity kernel:   (1765760) is smallest!.
Jul  3 17:22:33 vanity kernel:  checking sdb5 ... contained as device 1
Jul  3 17:22:33 vanity kernel:  zone-nb_dev: 2, size: 3531520
Jul  3 17:22:33 vanity kernel: current zone offset: 1765760
Jul  3 17:22:33 vanity kernel: done.
Jul  3 17:22:33 vanity kernel: raid0 : md_size is 3531520 blocks.
Jul  3 17:22:33 vanity kernel: raid0 : conf-smallest-size is 3531520 blocks.
Jul  3 17:22:33 vanity kernel: raid0 : nb_zone is 1.
Jul  3 17:22:33 vanity kernel: raid0 : Allocating 8 bytes for hash.
Jul  3 17:22:33 vanity kernel: md: updating md0 RAID superblock on device
Jul  3 17:22:33 vanity kernel: sdb5 [events: 003d](write) sdb5's sb offset: 1765760
Jul  3 17:22:33 vanity kernel: sda5 [events: 003d](write) sda5's sb offset: 1765760
Jul  3 17:22:33 vanity kernel: .
Jul  3 17:22:33 vanity kernel: ... autorun DONE.

Anders "Quest" Qvist