From: "H.Rosmanith (Kernel Mailing List)" <kernel@wildsau.enemy.org>
To: linux-kernel@vger.kernel.org
Subject: SG_GET_VERSION_NUM rejected on scsi device?
Date: Mon, 27 Dec 2004 23:02:29 +0100 (MET) [thread overview]
Message-ID: <200412272202.iBRM2Upj021784@wildsau.enemy.org> (raw)
good evening,
I have a old Plextor CD-R, native scsi, attached to an AHA_2940.
looks like this:
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36
<Adaptec 2940 SCSI adapter>
aic7870: Single Channel A, SCSI Id=7, 16/253 SCBs
blk: queue dd3b3218, I/O limit 4095Mb (mask 0xffffffff)
resize_dma_pool: unknown device type -1
(scsi0:A:4): 10.000MB/s transfers (10.000MHz, offset 8)
Vendor: PLEXTOR Model: CD-R PX-W124TS Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 02
blk: queue dd3b3018, I/O limit 4095Mb (mask 0xffffffff)
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
now, I do an ioctl(SG_GET_VERSION_NUM) (0x2282), and that fails:
open("/dev/sr0", O_RDONLY) = 3
ioctl(3, 0x2282, 0xbffff660) = -1 EINVAL (Invalid argument)
on the other hand, I can sucessfully mount /dev/sr0, e.g.:
bash-2.05# df
...
/dev/sr0 110998 110998 0 100% /mnt
kernel is 2.4.28, but since this is a native scsi device, that should
not matter, right?
so, what's wrong here?
/herp
next reply other threads:[~2004-12-27 22:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-27 22:02 H.Rosmanith (Kernel Mailing List) [this message]
2004-12-27 22:48 H.Rosmanith (Kernel Mailing List)
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=200412272202.iBRM2Upj021784@wildsau.enemy.org \
--to=kernel@wildsau.enemy.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®