lkml.org 
[lkml]   [2004]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.5-rc2-mm4
 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [from the cache]
©2003-2011 Jasper Spaans