[lkml]   [2003]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [Rdi1] Re: [PATCH] Add MOUNT_STATUS ioctl to cdrom device
    On Tue, Aug 26 2003, Samphan Raruenrom wrote:
    > Jens Axboe wrote:
    > >On Tue, Aug 26 2003, Samphan Raruenrom wrote:
    > >>>Exactly. You poll media events from the drive, and upon an eject request
    > >>>you try and umount it. If it suceeds, you eject the tray.
    > >>No, it seems impossible to sense the eject request (right?). This
    > >No it isn't, in fact there are several ways to do it. Just by searching
    > >this list you should be able to find them.
    > YES!!
    > get_media_event() = 1 -> eject
    > Thanks :-) I think you can't imagine how happy I am now. Thank you again.

    I'm surprised you didn't find these things up front.

    > >>is what I really did with the patched kernel and patched magicdev.
    > >magicdev is a piece of crap.
    > Why? I read all its code. Because of 2 sec. polling?

    Because it relies on unreliable mechanisms instead of using the proper
    support. That makes it 100% crap in my eyes, unusable.

    > >I think you need to spend a little more time thinking/researching this
    > >problem. At least it really looks like you are going about it all wrong.
    > You've just put me on the right track. Thank you very much. I really
    > appreciate your and every others insightful comments.

    No problem.

    Jens Axboe

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:48    [W:0.021 / U:3.156 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site