Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758939AbXFOWlQ (ORCPT ); Fri, 15 Jun 2007 18:41:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756783AbXFOWks (ORCPT ); Fri, 15 Jun 2007 18:40:48 -0400 Received: from hancock.steeleye.com ([71.30.118.248]:50704 "EHLO hancock.sc.steeleye.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755834AbXFOWkq (ORCPT ); Fri, 15 Jun 2007 18:40:46 -0400 Subject: Re: [patch 4/6] ps3: Disk Storage Driver From: James Bottomley To: David Miller Cc: alan@lxorguk.ukuu.org.uk, Geert.Uytterhoeven@sonycom.com, dwmw2@infradead.org, axboe@kernel.dk, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, paulus@samba.org In-Reply-To: <20070615.141917.85409547.davem@davemloft.net> References: <1181918159.25228.543.camel@pmac.infradead.org> <20070615171545.316dfac7@the-village.bc.nu> <20070615.141917.85409547.davem@davemloft.net> Content-Type: text/plain Date: Fri, 15 Jun 2007 15:40:42 -0700 Message-Id: <1181947242.3600.8.camel@mulgrave.il.steeleye.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 (2.10.2-2.fc7) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1835 Lines: 46 On Fri, 2007-06-15 at 14:19 -0700, David Miller wrote: > From: Alan Cox > Date: Fri, 15 Jun 2007 17:15:45 +0100 > > > > > Any particular reason why this is done as a separate block device driver > > > > rather than as SCSI? > > > > > > Because no new fake SCSI drivers are accepted anymore. > > > > Where did drivers/ata come from ;) > > > > How about making it a fake ata driver if James is being fussy 8) > > That sounds like a good idea for my virtual I/O case on > Niagara too actually :-) I have no objections to VIO servers speaking SCSI ... if you want to do that, I suggest you look at an existing example, like drivers/scsi/ibmvscsi (the actual communication piece is very ppc hypervisor specific, though). However, I do strongly believe that using SCSI for devices which truly aren't SCSI (i.e. you have to code a shim in the driver between the SCSI commands and whatever your device speaks) is wrong ... if SCSI has features that the generic block layer doesn't, then we need to move the function from SCSI to block to give you access ... in theory this was the rationale for having libata as the last "fake" SCSI driver, so we could identify this functionality and begin to move it. > Another quirk I have to deal with is that under LDOMs you > can export full disks and also just slices. So I'll have > to get down into the partition machinery to support that > somehow. For this, it sounds like you might find nbd a more enticing proposition ... it already is partition independent and is basically a block to net socket exporter. James - 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/