Re: 2.6.5-rc2-mm4

From: Olaf Hering
Date: Sun Mar 28 2004 - 13:57:08 EST


On Sat, Mar 27, Jens Axboe wrote:

> On Fri, Mar 26 2004, Andrew Morton wrote:
> > > >
> > > > Suppress cdroms in /proc/partitions
> > >
> > > What's this patch trying to archive? IDE cdroms are partitionable in
> > > 2.5..
>
> I'm not trying to kill partioning (which doesn't exist, btw), it's just
> an artifact of flagging the gendisk removable that they don't show up in
> /proc/partitions

you need this one as well:


--- ./drivers/cdrom/viocd.c~ 2004-03-28 18:36:16.000000000 +0000
+++ ./drivers/cdrom/viocd.c 2004-03-28 18:44:19.000000000 +0000
@@ -615,7 +615,7 @@ static int __init viocd_init(void)
VIOCD_DEVICE_DEVFS "%d", deviceno);
gendisk->queue = viocd_queue;
gendisk->fops = &viocd_fops;
- gendisk->flags = GENHD_FL_CD;
+ gendisk->flags = GENHD_FL_CD|GENHD_FL_REMOVABLE;
set_capacity(gendisk, 0);
gendisk->private_data = d;
d->viocd_disk = gendisk;

--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/