Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 1998 22:18:31 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Cory Kempf <ckempf@enigami.com>, freebsd-scsi@FreeBSD.ORG
Subject:   Re: dev links won't open.  Why?
Message-ID:  <19980731221831.K11960@freebie.lemis.com>
In-Reply-To: <x7zpdqw6ko.fsf@singularity.enigami.com>; from Cory Kempf on Fri, Jul 31, 1998 at 08:25:27AM -0400
References:  <x71zr2y571.fsf@singularity.enigami.com> <19980731162635.T7830@freebie.lemis.com> <x7zpdqw6ko.fsf@singularity.enigami.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Friday, 31 July 1998 at  8:25:27 -0400, Cory Kempf wrote:
> "Greg" == Greg Lehey <grog@lemis.com> writes:
>> On Friday, 31 July 1998 at 1:12:18 -0400, Cory Kempf wrote:
>>>  As root, create a link to a /dev/pass device, e.g.
>>>
>>> ln -s /dev/pass3 /dev/scanner
>>>
>>> Again as root, attempt to open /dev/scanner via cam_open_device.
>>>
>>> It fails.
>
>> How?  What error?
>
> Errno is 0
> the return from cam_open_device is NULL

Hmm.

> Not very useful.

Indeed.

>>> Why?  Assuming it is a bug in cam_open_device, can we get it fixed?
>
>> Well, it doesn't solve whatever the problem might be, but why not
>> use a hard link?
>
> 'cause it fails the same way?

That seems unlikely.  In the case of a device node, a hard link is
effectively a copy.  But if that doesn't work, you can always recreate
the node.

Caveat: I haven't looked at the code, I'm just going on basic
principles.  Symlinks look different at the code level, hard links
don't.

Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980731221831.K11960>