linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] brd: fix ramdisk regression
@ 2008-05-20 13:41 Nick Piggin
  2008-05-20 19:04 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Piggin @ 2008-05-20 13:41 UTC (permalink / raw)
  To: Andrew Morton, linux-fsdevel; +Cc: hawk

From: Marcin Krol <hawk@pld-linux.org>

In 2.6.25, ramdisk devices show up in /proc/partitions, which is a
behaviour change from the old rd.c. Add GENHD_FL_SUPPRESS_PARTITION_INFO,
which was present in rd.c.

Signed-off-by: Marcin Krol <hawk@pld-linux.org>
--
--- 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);
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-20 21:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20 13:41 [patch] brd: fix ramdisk regression Nick Piggin
2008-05-20 19:04 ` Andrew Morton
2008-05-20 20:24   ` Marcin Krol
2008-05-20 20:34     ` Andrew Morton
2008-05-20 21:32       ` [stable] " Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).