Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 2009 17:01:23 -0700
From:      Tim <tim-projects@sentinelchicken.org>
To:        d@delphij.net
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: "Inappropriate ioctl for device" when using scsi_sg
Message-ID:  <20090806000123.GJ2654@sentinelchicken.org>
In-Reply-To: <4A7A19F3.1040207@delphij.net>
References:  <20090805013213.GF2654@sentinelchicken.org> <4A7A19F3.1040207@delphij.net>

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

Xin,

Thanks much for your response.

> My understanding is that, by default (GENERIC), sg device is not
> compiled into the kernel, so, in order to use it, you may have to
> compile your own kernel and add:
> 
> 	device sg
> 
> In the configuration.  The device would appear as "/dev/sg0", etc.;
> Linux style "/dev/sga /dev/sgb" would appear as symlinks.

I figured it might be something like that.  Oddly, Linux allows me to
send these special SCSI commands directly to the original disk devices
(such as /dev/sd{a,b,c,..}) without the need for using any sg-specific
device files.  Using /dev/sg{0,...} is not a problem though.  I'll
have to find a system to do a full install on and get that compiled
in.

Thanks again,
tim



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