Re: 2.6.5-rc2-mm4

Olaf Hering
2004-03-28T18:54:46Z

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