public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Paul Powell <moloch16@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Ioctl CDROMRESET has no effect
Date: Wed, 7 Feb 2001 17:40:47 +0100	[thread overview]
Message-ID: <20010207174047.D20618@suse.de> (raw)
In-Reply-To: <20010207163432.25823.qmail@web114.yahoomail.com>
In-Reply-To: <20010207163432.25823.qmail@web114.yahoomail.com>; from moloch16@yahoo.com on Wed, Feb 07, 2001 at 08:34:32AM -0800

On Wed, Feb 07 2001, Paul Powell wrote:
> I'm attempting to reset a CDROM using the CDROMRESET
> ioctl.  The reset command only seems to reset the
> device if the device is not mounted.  If the device is
> mounted, the reset command seems to have no effect.
> 
> With the device unmounted, sending the reset command
> causes the drive to become active and I see the
> activity light light up.  With the device mounted, the
> activity light does nothing.  I also can't open the
> CD-ROM drive using the eject button after resetting a
> mounted CD.
> 
> It seems the reset command should work even if the OS
> thinks the device is mounted for error recovery.

There's no special code to send different reset depending
on whether the drive is mounted or not. If you drive
reacts differently to a reset if it's locked, then tough
luck.

>    result = ioctl(fd, CDROMRESET, 1);
                                    ^^

There are no valid parameters for a reset.

-- 
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2001-02-07 16:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-07 16:34 Ioctl CDROMRESET has no effect Paul Powell
2001-02-07 16:40 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010207174047.D20618@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=moloch16@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox