From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965025AbVHOWlj (ORCPT ); Mon, 15 Aug 2005 18:41:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965024AbVHOWlj (ORCPT ); Mon, 15 Aug 2005 18:41:39 -0400 Received: from stat16.steeleye.com ([209.192.50.48]:51664 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S965019AbVHOWli (ORCPT ); Mon, 15 Aug 2005 18:41:38 -0400 Subject: Re: [PATCH] add transport class symlink to device object From: James Bottomley To: Matthew Wilcox Cc: Greg KH , James.Smart@Emulex.Com, Andrew Morton , SCSI Mailing List , Linux Kernel , Alan Cox , Russell King In-Reply-To: <20050814150231.GA9466@parcelfarce.linux.theplanet.co.uk> References: <9BB4DECD4CFE6D43AA8EA8D768ED51C201AD35@xbl3.ma.emulex.com> <20050813213955.GB19235@kroah.com> <20050814150231.GA9466@parcelfarce.linux.theplanet.co.uk> Content-Type: text/plain Date: Mon, 15 Aug 2005 17:41:17 -0500 Message-Id: <1124145677.5089.68.camel@mulgrave> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-6) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2005-08-14 at 16:02 +0100, Matthew Wilcox wrote: > /sys/class/tty/ttyS0/device -> ../../../devices/parisc/0/0:0/pci0000:00/0000:00:04.0 > /sys/class/tty/ttyS1/device -> ../../../devices/parisc/0/0:0/pci0000:00/0000:00:04.0 > /sys/class/tty/ttyS2/device -> ../../../devices/parisc/0/0:0/pci0000:00/0000:00:04.0 > /sys/class/tty/ttyS3/device -> ../../../devices/parisc/0/0:0/pci0000:00/0000:00:05.0 > /sys/class/tty/ttyS4/device -> ../../../devices/parisc/0/0:0/pci0000:00/0000:00:05.0 Actually, isn't the fix to all of this to combine Greg and James' patches? The Greg one fails in SCSI because we don't have unique class device names (by convention we use the same name as the device bus_id) and James' one fails for ttys because the class name isn't unique. However, if the link were derived from something like : Then is would be unique in both cases. Unless anyone can think of any more failing cases? James