Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262840AbVAFO2w (ORCPT ); Thu, 6 Jan 2005 09:28:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262842AbVAFO2v (ORCPT ); Thu, 6 Jan 2005 09:28:51 -0500 Received: from mail0.lsil.com ([147.145.40.20]:62857 "EHLO mail0.lsil.com") by vger.kernel.org with ESMTP id S262840AbVAFO2r (ORCPT ); Thu, 6 Jan 2005 09:28:47 -0500 Message-ID: <0E3FA95632D6D047BA649F95DAB60E57058C01B2@exa-atlanta> From: "Mukker, Atul" To: "'James Bottomley'" , "Bagalkote, Sreenivas" Cc: "'Matt Domsch'" , "'Salyzyn, Mark'" , "'brking@us.ibm.com'" , "'Linux Kernel'" , "'SCSI Mailing List'" , "'bunk@fs.tum.de'" , "'Andrew Morton'" , "Ju, Seokmann" , "Doelfel, Hardy" , "Mukker, Atul" Subject: RE: How to add/drop SCSI drives from within the driver? Date: Thu, 6 Jan 2005 09:20:45 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 34 > > the management app, there is no getting around knowing HCTL > mapping. > > The app must know the HCTL quad of a logical drive. > > Actually, if that's all you're trying to do, what about > > echo '- - -' > /sys/class/scsi_host/host/scan > > That'll trigger a rescan of the entire card and the device > will be found and added? For this to happen, the applications must at lease know 'n' in host, otherwise it will have to trigger a rescan on all controllers. Which would be an overkill. How about publishing the adapter class attribute as well? This would allow applications to correlate the adapter handle with the class attribute. > > Then, if you simply publish your LD number as an extra > parameter of the device, you can look through /sys to find it. Taken Apologize for the late post, we were evaluating your feedback. It looks good, thanks! -------- Atul Mukker Architect, Drivers and BIOS LSI Logic Corporation - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/