Re: IDE/ATAPI in 2.5

(no name) ((no email))
Mon, 15 Jul 2002 12:01:22 +0200


On Sun, Jul 14, 2002 at 10:13:19PM +0200, Joerg Schilling wrote:

>
> BTW: did you ever look at Solaris / HP-UX, ... and the way they
> name disks?

still have fresh memories how everything was renamed and broke
some of my apps.

> someting like: /dev/{r}dsk/c0t0d0s0
>
> This is SCSI bus, target, lun and slice.

You can have that type of names with devfs, no need to work
around kernel functionality in cdrecord.
On pure IDE hardware that doesn't make sense anyway, in fact
cdrecord mapping is strongly counterintuitive here.
CD-RW = hdd = bus1,target2 but cdrecord sees it as 0,0,0.

> >There is another problem, with your scsi transport library you
> >are bypassing normal Linux devices. Try
> > mount /dev/scd0 /mnt
> > cdrecord -dev 0,0,0 -blank=fast
> > ls -al /mnt
>
> >Nice? It certainly isn't the fault of Linux if you choose to
> >bypass normal device usage and it can be very annoying not
> >only for beginners.
>
> It is not a fault of cdrecord either.

A cure would be nice and I don't see what the kernel could do
to solve this problem as long as cdrecord insists on talking
to the SCSI bus directly.

If nothing else, cdrecord manpage
- should make a big fat warning about it
- should stop claiming that it is safe to suid cdrecord

The potential for breakage is huge, people run automounters on CD's,
file managers may try to mount the CD without asking the user.

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