Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761580AbYBEUqU (ORCPT ); Tue, 5 Feb 2008 15:46:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760345AbYBEUqI (ORCPT ); Tue, 5 Feb 2008 15:46:08 -0500 Received: from web31814.mail.mud.yahoo.com ([68.142.206.167]:21484 "HELO web31814.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1759390AbYBEUqF (ORCPT ); Tue, 5 Feb 2008 15:46:05 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=cTngzbLcKs93dG8WbROUdQAzdTVxHlPvAb8dBtTQDEd/x6mTeIl363nPwK5lTiuqaccK0oit4WxbapNa69O+2b7bLLLHRBKMWO60gH4pjwuCb2+nKTiCEJc8T56C002/pbQ8gJns4UOZqfo0dPXq4C4m7nOvICKKtN7Xk8uQ+I4=; X-YMail-OSG: eS98b70VM1nkDBxGDBQHqZrjLkjOL0hQC0Qbk0yUxQFG.WmivizdwiDxuWZ0MTnkb9yrzg-- X-Mailer: YahooMailWebService/0.7.162 Date: Tue, 5 Feb 2008 12:39:14 -0800 (PST) From: Luben Tuikov Reply-To: ltuikov@yahoo.com Subject: Re: [PATCH] enclosure: add support for enclosure services To: James Bottomley Cc: linux-scsi , linux-kernel , linux-ide , "Accardi, Kristen C" In-Reply-To: <1202243385.3133.82.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <4432.74783.qm@web31814.mail.mud.yahoo.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1859 Lines: 56 --- On Tue, 2/5/08, James Bottomley wrote: > > > Wrong ... we don't export non-SCSI devices as > SCSI > > > (with the single and > > > rather annoying exception of ATA via SAT). > > > > I didn't say you should do that. I had already > > mentioned that vendors export such controls > > as either enclosure or processor type devices, > > and this is why I told you that that is what > > needs to be exported, which incidentally is > > a device node of that type. > > > > Without a common usage model already in the kernel > > to abstract (e.g. sd for block device, since you > brought > > that up) your abstraction seems redundant and > arbitrary. > > Exactly, so the first patch in this series (a while ago ^^^^^^^^^^^ See last paragraph. > now) was a > common usage model abstraction of enclosures, and the > second was an > implementation in terms of SES. I will do one in terms of > SGPIO as > well ... assuming I ever find a SGPIO enclosure ... The vendor would've abstracted that away most commonly using SES. > > > Your kernel code already uses READ DIAGNOSTIC, etc, > > and I'd rather leave that to user-space. > > You can do it in user space as well. It's just a bit > difficult to get > information out of a SES enclosure without using it, and > getting some of > the information is a requirement of the abstraction. You missed my point. Your abstraction is redundant and arbitrary -- it is not based on any known, in-practice, usage model, already in place that needs a better, common way of doing XYZ, and therefore needs an abstraction. Luben -- 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/