patch-2.4.19 linux-2.4.19/drivers/block/blkpg.c

Next file: linux-2.4.19/drivers/block/cciss.c
Previous file: linux-2.4.19/drivers/block/amiflop.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/block/blkpg.c linux-2.4.19/drivers/block/blkpg.c
@@ -110,6 +110,7 @@
 	g->part[minor].nr_sects = plength;
 	if (g->sizes)
 		g->sizes[minor] = (plength >> (BLOCK_SIZE_BITS - 9));
+	devfs_register_partitions (g, first_minor, 0);
 	return 0;
 }
 
@@ -157,6 +158,7 @@
 	g->part[minor].nr_sects = 0;
 	if (g->sizes)
 		g->sizes[minor] = 0;
+	devfs_register_partitions (g, first_minor, 0);
 
 	return 0;
 }

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