public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Derek Foreman <manmower@signalmarketing.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: CDROM_SEND_PACKET oddity
Date: Sat, 27 Sep 2003 13:47:12 +0200	[thread overview]
Message-ID: <20030927114712.GJ3416@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.58.0309262131110.15317@uberdeity.signalmarketing.com>

On Fri, Sep 26 2003, Derek Foreman wrote:
> The example code from
> http://www.ussg.iu.edu/hypermail/linux/kernel/0202.0/att-0603/01-cd_poll.c
> 
> Does not behave as expected on my 2.6.0-test5 system.  While the command 
> seems to be successfully sent - 2 of my drives report it as an invalid 
> opcode - for the other 2 drives, the buffer comes back all zeros.
> (actually, the buffer's contents will remain in whatever state they're in 
> before the ioctl is called)
> 
> Sending the same command to those 2 drives with SG_IO results in the 
> expected behaviour.

Can you try current -bk? It has some fixes for CDROM_SEND_PACKET.

However, cd_poll should be rewritten to use SG_IO. Pretty trivial
exercise.

-- 
Jens Axboe


  reply	other threads:[~2003-09-27 11:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-27  3:33 CDROM_SEND_PACKET oddity Derek Foreman
2003-09-27 11:47 ` Jens Axboe [this message]
2003-09-27 12:27   ` Jens Axboe
2003-09-27 17:54     ` Jens Axboe
2003-09-27 18:11       ` Derek Foreman
2003-09-28  3:50       ` Derek Foreman
2003-09-28  8:51         ` Jens Axboe
2003-09-28 16:56           ` Derek Foreman
2003-09-28 18:14             ` Jens Axboe
2003-09-28 21:02               ` Derek Foreman

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=20030927114712.GJ3416@suse.de \
    --to=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manmower@signalmarketing.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