patch-2.3.48 linux/fs/partitions/check.c

Next file: linux/fs/partitions/msdos.c
Previous file: linux/fs/openpromfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/partitions/check.c linux/fs/partitions/check.c
@@ -396,11 +396,15 @@
 	int first_minor	= drive << dev->minor_shift;
 	int end_minor	= first_minor + dev->max_p;
 
-	blk_size[dev->major] = NULL;
+	if(!dev->sizes)
+		blk_size[dev->major] = NULL;
+
 	dev->part[first_minor].nr_sects = size;
 	/* 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);
 
  	/*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)