lkml.org 
[lkml]   [2003]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [IDE] trying to make MO drive work with ide-floppy/ide-cd
    On Tue, May 06 2003, Jens Axboe wrote:
    > > > You need to patch cdrom.c as well:
    > > >
    > > > if ((fp->f_mode & FMODE_WRITE) && !CDROM_CAN(CDC_DVD_RAM))
    > > > return -EROFS;
    > > >
    > >
    > > Simply removing that test doesn't get me working write support,
    > > I still get:
    > >
    > > # mount -t ext2 /dev/hde /mnt/mo
    > > mount: block device /dev/hde is write-protected, mounting read-only
    > >
    > > The disk is not write-protected, I checked.
    >
    > Shouldn't matter, the drive has to check for that particular bit (and it
    > obviously does not). Are we still talking 2.5 or 2.4?

    You also need to fix this in ide-cd:

    if (CDROM_CONFIG_FLAGS(drive)->dvd_ram)
    set_disk_ro(drive->disk, 0);

    --
    Jens Axboe

    -
    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 13:35    [W:0.019 / U:31.056 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site