Fix for "unable to read partition table" bug in 2.3.48-pre1

From: Mike Pakovic (mpakovic@fdn.com)
Date: Thu Feb 24 2000 - 09:05:38 EST


The following patch is against 2.3.48-pre1 and corrects a bug
introduced in 2.3.48-pre1 which prevents reading of the partition
information from the slave drives of the IDE interface. It probably also
(though I have no way of verifying) effects all but the first disk drive on
a SCSI bus.

diff -U4 -r linux-2.3.48/fs/partitions/check.c linux-2.3.48.fixed/fs/partitions/check.c
--- linux-2.3.48/fs/partitions/check.c Wed Feb 23 20:31:22 2000
+++ linux-2.3.48.fixed/fs/partitions/check.c Wed Feb 23 20:54:20 2000
@@ -403,8 +403,9 @@
         /* No Such Agen^Wdevice or no minors to use for partitions */
         if (!size || minors == 1)
                 return;
 
+ blk_size[dev->major] = NULL;
         check_partition(dev, MKDEV(dev->major, first_minor), 1 + first_minor);
 
          /*
           * We need to set the sizes array before we will be able to access

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



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:09 EST