Re: writable mmc profiles actually are writable

Pat LaVarre
2003-10-10T21:04:21Z

> > Help! I do not know Where to add this code.

Just now I weakly concluded somewhere I need to add:

op x46 GPCMD_GET_CONFIGURATION
op x5A GPCMD_MODE_SENSE_10 of page x2A GPMODE_CAPABILITIES_PAGE

To let me proceed to write source without yet knowing where to insert
it, I will insert it to a known wrong place that mostly works.

Specifically, I will add code to drivers/cdrom/cdrom.c cdrom_open, to
try to clear the CDROM_CAN(CDC_MMC_WR) incapability only after some
tries cdrom_open with (fp->f_mode & FMODE_WRITE).

I believe this won't actually work. I believe this will teach only
cdrom.ko to pass thru the writes, but then sr_mod.ko will still refuse
them. But I will now go prove or disprove that theory.

Pat LaVarre