From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261406AbULHXqp (ORCPT ); Wed, 8 Dec 2004 18:46:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261411AbULHXqo (ORCPT ); Wed, 8 Dec 2004 18:46:44 -0500 Received: from e3.ny.us.ibm.com ([32.97.182.143]:1436 "EHLO e3.ny.us.ibm.com") by vger.kernel.org with ESMTP id S261406AbULHXqk (ORCPT ); Wed, 8 Dec 2004 18:46:40 -0500 Message-ID: <41B7925E.5070700@us.ibm.com> Date: Wed, 08 Dec 2004 17:46:38 -0600 From: Brian King Reply-To: brking@us.ibm.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Bagalkote, Sreenivas" CC: Matt Domsch , "'James Bottomley'" , "'linux-kernel@vger.kernel.org'" , "'linux-scsi@vger.kernel.org'" , "'bunk@fs.tum.de'" , "'Andrew Morton'" , "Ju, Seokmann" , "Doelfel, Hardy" , "Mukker, Atul" Subject: Re: How to add/drop SCSI drives from within the driver? References: <0E3FA95632D6D047BA649F95DAB60E570230CA8C@exa-atlanta> In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E570230CA8C@exa-atlanta> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Bagalkote, Sreenivas wrote: > Adding a drive:- For application to use sysfs to scan newly added drive, > it needs to know the HCTL (SCSI address - Host, Channel, Target & Lun) > of the drive. Driver is the only one that knows the mapping between a > drive and the corresponding HCTL. Can you explain from a high level how megaraid adds logical devices? I assume a management app of some sort sends a command to the adapter to create a disk array. What interface is used for this? Does this trigger any notification from the adapter to the device driver? > Removing a drive:- There is no sane way for the application to map out > drives to /dev/sd. This information is all available in sysfs. Have you looked at libsysfs at all? -- Brian King eServer Storage I/O IBM Linux Technology Center