Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751102AbWC0PkO (ORCPT ); Mon, 27 Mar 2006 10:40:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751091AbWC0PkO (ORCPT ); Mon, 27 Mar 2006 10:40:14 -0500 Received: from stat9.steeleye.com ([209.192.50.41]:21673 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S1751089AbWC0PkN (ORCPT ); Mon, 27 Mar 2006 10:40:13 -0500 Subject: Re: [PATCH] Move SG_GET_SCSI_ID from sg to scsi From: James Bottomley To: Matthew Wilcox Cc: Bodo Eggert <7eggert@gmx.de>, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@osdl.org In-Reply-To: <20060327152026.GG3486@parisc-linux.org> References: <20060326200522.GA3486@parisc-linux.org> <20060327152026.GG3486@parisc-linux.org> Content-Type: text/plain Date: Mon, 27 Mar 2006 09:40:01 -0600 Message-Id: <1143474001.3334.11.camel@mulgrave.il.steeleye.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1255 Lines: 27 On Mon, 2006-03-27 at 08:20 -0700, Matthew Wilcox wrote: > So we don't currently save the scsi_lun anywhere. We, er, translate it > into a 32-bit int, and carry that around. Obviously this is going to > have to change for things like iSCSI, but this is totally offtopic for > your patch. So I agree with you, whoever adds the 64-bit LUN support > gets to patch the ioctl struct too. Actually, this is precisely the argument for why we don't want such an ioctl at all. This area is one of the ones there should be significant changes in for the forseeable future. 32->64 bit LUNs are probably only the start; then there'll be elimination of the target ID (or replacing it with a string). If we have this ioctl, every time this area changes, so now does the user ABI. Finally, I really don't think we want to encourage anybody in userspace to rely on a string of internally generated numbers ... that's what sysfs paths are for, but at least they're simply strings opaque, so we can change them. 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/