Date: Tue, 17 Jul 2001 11:20:07 +0800 (SGT) From: Gregory Hosler <gregory.hosler@eno.ericsson.se> To: Mike Brown <mbrown@cs.uml.edu> Cc: aic7xxx@FreeBSD.ORG, linux-scsi@vger.kernel.org, Vincent Cojot <coyote@step.polymtl.ca> Subject: Re: Naive question: 2.2.x or 2.4.x drvconfig equivalent in the w Message-ID: <XFMail.010717112007.gregory.hosler@eno.ericsson.se> In-Reply-To: <Pine.OSF.3.96.1010716102137.246191A-100000@venus.cs.uml.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
I'm not so sure that I would blindly assume that a scsi bus reset would blissfully do a scsi bus scan. I haven't looked at the code in quite a few years, but the early incarnations of the scsi layer didn't do a bus rescan when the bus was reset. What would be really nice would be the equivalent of support for hot-plugable as applied to scsi. AFAIAA this is not in either 2.2 or 2.4. regards, -Greg On 16-Jul-01 Mike Brown wrote: >> Is there a device-specific (perhaps?) way to force a bus reset? > > Take a look at <linux>/include/scsi/sg.h > > One of the ioctl()'s is defined as: > >#define SG_SCSI_RESET 0x2284 > > with subcommands: > >#define SG_SCSI_RESET_NOTHING 0 >#define SG_SCSI_RESET_DEVICE 1 >#define SG_SCSI_RESET_BUS 2 >#define SG_SCSI_RESET_HOST 3 > > I gather you could get the job done via something like: > >#define MY_SG_DEV "/dev/sg0" > > int fd = open (MY_SG_DEV, O_RDWR); > > ioctl (fd, SG_SCSI_RESET, SG_SCSI_RESET_BUS); > > > -Michael F. Brown, UMass Lowell Computer Science > > email: mbrown@cs.uml.edu > > "Windows is a 32 bit patch to a 16 bit GUI based on an 8 bit > operating system." -FAQs (from #linux on efnet) > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe aic7xxx" in the body of the message ---------------------------------- E-Mail: Gregory Hosler <gregory.hosler@eno.ericsson.se> Date: 17-Jul-01 Time: 11:19:37 You can release software that's good, software that's inexpensive, or software that's available on time. You can usually release software that has 2 of these 3 attributes -- but not all 3. ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe aic7xxx" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010717112007.gregory.hosler>