[Top] [All Lists]

Re: devfs/cdrom problem CDRW

To: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Subject: Re: devfs/cdrom problem CDRW
From: Yaroslav Halchenko <yoh@xxxxxxxxxx>
Date: Fri, 30 Nov 2001 01:00:51 -0700 (MST)
Cc: devfs@xxxxxxxxxxx
In-reply-to: <200111300653.fAU6rIT09602@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
Dear Richard,

> > no cd device in the ide section anywhere
> OK. So if you need to use ide-scsi, then you can find your CD-ROM
> under /dev/cdroms. It should contain an entry pointing off to
> /dev/scsi/host*/bus*/target*/lun*/cd
It is not that hard to find it there, but as I said in the original
message hdparm doesn't work with it (it seems it didn't work with sg*
either without devfs). So problem is that hdparm doesn't work with scsi
devices probably... So I need also access to hdc which is not going
through SCSI emulation.

Here is difference in requests for hdc and scsi/host0/bus0/target1/lun0/cd
16882 stat("/dev/scsi/host0/bus0/target1/lun0/cd", {st_dev=makedev(0, 7),
st_ino=1285, st_mode=S_IFBLK|0666, st_nlink=1, st
_uid=0, st_gid=24, st_blksize=1024, st_blocks=0, st_rdev=makedev(11, 1),
st_atime=0, st_mtime=0, st_ctime=2001/11/24-15:07:
29}) = 0
then it reports a problem as I mentioned

16893 stat("/dev/hdc", {st_dev=makedev(0, 7), st_ino=1360,
st_mode=S_IFBLK|0660, st_nlink=1, st_uid=0, st_gid=6, st_blksize
=1024, st_blocks=0, st_rdev=makedev(22, 0), st_atime=2001/11/24-15:10:39,
st_mtime=2001/11/24-15:10:39, st_ctime=2001/11/24
-15:10:39}) = 0
16893 open("/dev/hdc", O_RDONLY|O_NONBLOCK) = 4
so it openes it without hesitation

So is problem in major/minors? 22,0 vs 11,1 or something else?

 > >
Regards, > 
>                                       Richard....
> Permanent: rgooch@xxxxxxxxxxxxx
> Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>