SOURCES: kernel-CRI-no_rd_in_proc_partitions.patch (NEW) - fixed 2.6.25 reg...

hawk hawk at pld-linux.org
Sun May 18 01:40:06 CEST 2008


Author: hawk                         Date: Sat May 17 23:40:06 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed 2.6.25 regression, don't show ram disks in /proc/partitions

---- Files affected:
SOURCES:
   kernel-CRI-no_rd_in_proc_partitions.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/kernel-CRI-no_rd_in_proc_partitions.patch
diff -u /dev/null SOURCES/kernel-CRI-no_rd_in_proc_partitions.patch:1.1
--- /dev/null	Sun May 18 01:40:06 2008
+++ SOURCES/kernel-CRI-no_rd_in_proc_partitions.patch	Sun May 18 01:40:01 2008
@@ -0,0 +1,10 @@
+--- linux-2.6.25/drivers/block/brd.c.orig	2008-04-17 04:49:44.000000000 +0200
++++ linux-2.6.25/drivers/block/brd.c	2008-05-18 01:18:28.381903343 +0200
+@@ -442,6 +442,7 @@
+ 	disk->fops		= &brd_fops;
+ 	disk->private_data	= brd;
+ 	disk->queue		= brd->brd_queue;
++	disk->flags |= GENHD_FL_SUPPRESS_PARTITION_INFO;
+ 	sprintf(disk->disk_name, "ram%d", i);
+ 	set_capacity(disk, rd_size * 2);
+ 
================================================================


More information about the pld-cvs-commit mailing list