Re: writable mmc profiles actually are writable

Pat LaVarre
2003-10-06T20:10:56Z

> > +// if ((fp->f_mode & FMODE_WRITE) && !CDROM_CAN(CDC_DVD_RAM))
> > +// return -EROFS;
> > +// if (!cd->device->writeable)
> > +// return 0;
>
> ... obviously wrong

May I ask why this patch is obviously wrong?

What actually breaks?

How do we benefit from having cdrom.ko and sr_mod.ko redundantly refuse
writes?

I figure I should try mount of a cd-rom with this patch. Maybe I get
mount -w when I wanted mount -r and then life goes downhill from there.
Or maybe iso fs doesn't try to write. Or ...

Pat LaVarre