Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758617AbXEQWYs (ORCPT ); Thu, 17 May 2007 18:24:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756851AbXEQWYi (ORCPT ); Thu, 17 May 2007 18:24:38 -0400 Received: from mx1.redhat.com ([66.187.233.31]:44994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756784AbXEQWYg (ORCPT ); Thu, 17 May 2007 18:24:36 -0400 Message-ID: <464CD613.3090406@redhat.com> Date: Thu, 17 May 2007 18:24:19 -0400 From: Peter Jones User-Agent: Thunderbird 2.0.0.0 (X11/20070419) MIME-Version: 1.0 To: Matthew Wilcox CC: Simon Arlott , James Bottomley , Dave Jones , Linux Kernel Mailing List , linux-scsi@vger.kernel.org, kernel-packagers@vger.kernel.org Subject: Re: Asynchronous scsi scanning References: <20070513160608.GA29024@redhat.com> <1179072655.3723.42.camel@mulgrave.il.steeleye.com> <1179073116.3723.45.camel@mulgrave.il.steeleye.com> <1179153096.3703.23.camel@mulgrave.il.steeleye.com> <17841.simon.1179228389@5ec7c279.invalid> <20070515120228.GI10562@parisc-linux.org> In-Reply-To: <20070515120228.GI10562@parisc-linux.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1702 Lines: 37 Matthew Wilcox wrote: > On Tue, May 15, 2007 at 12:26:29PM +0100, Simon Arlott wrote: >> I've already suggested a sysfs attribute - or something equivalent - would >> be much better. It's just one function that a user might want to run multiple >> times (e.g. after adding scsi devices?) - why should loading a module be used >> for this? > > It's easy to suggest a sysfs attribute. What you've failed to do is > suggest the pathname of the sysfs attribute, the contents of it, or the > semantics of it (read-only? read-write? write-only? blocking?) > > My personal favourite would be to add a new verb to /proc/scsi/scsi, but > James dislikes that idea. > > I'd *really* like to hear from distro people. What is the most > convenient way for you to implement "load all the scsi modules, then > wait until all devices are found"? James and I had thought that loading > a new module would be the easiest way for you, but it seems inconvenient > for you. Basically we're going to wind up listening for SUBSYSTEM=block hotplug events. What would be helpful is if /sys/block/$foo/device/{model,vendor} were populated when we get the event (or, since there are good reasons why they're not, if we got another event afterwards that said they'd been populated). Even more helpful if there were also sysfs attributes for serial numbers and such from INQUIRY VPD data. That would make probing for the *correct* drive(s) much simpler. -- Peter - 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/