From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261575AbULISEP (ORCPT ); Thu, 9 Dec 2004 13:04:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261567AbULISEP (ORCPT ); Thu, 9 Dec 2004 13:04:15 -0500 Received: from 216-99-218-173.dsl.aracnet.com ([216.99.218.173]:33481 "EHLO localhost.localdomain") by vger.kernel.org with ESMTP id S261575AbULISD0 (ORCPT ); Thu, 9 Dec 2004 13:03:26 -0500 Date: Thu, 9 Dec 2004 10:00:37 -0800 From: "'Patrick Mansfield'" To: "Mukker, Atul" Cc: "'James Bottomley'" , "Bagalkote, Sreenivas" , "'Matt Domsch'" , "'brking@us.ibm.com'" , "'linux-kernel@vger.kernel.org'" , "'SCSI Mailing List'" , "'bunk@fs.tum.de'" , "'Andrew Morton'" , "Ju, Seokmann" , "Doelfel, Hardy" Subject: Re: How to add/drop SCSI drives from within the driver? Message-ID: <20041209180037.GA7221@us.ibm.com> References: <0E3FA95632D6D047BA649F95DAB60E57057A1B87@exa-atlanta> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E57057A1B87@exa-atlanta> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 09, 2004 at 12:31:37PM -0500, Mukker, Atul wrote: > > How does the driver supply the mapping if it does not know > > about the "change"? Is it reserving or telling user space the > > hctl that will be used? > This point was thoroughly explained in my previous post item 2. Yes, driver > reserves a virtual bus on which all logical drives would be exported. OK ... > > If so, why can't the driver call scsi_add_device(h,c,t,l) > > after the ioctl to create the logical drive completes? > This idea was already turned down, see mails on linux-scsi on 12/3 Well you can call scsi_add_device() from the driver, the objections I saw were to add an ioctl that would just call scsi_add_device(). But it doesn't matter if adding driver post-ioctl specific actions is not an option. -- Patrick Mansfield