Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264265AbUF0U3z (ORCPT ); Sun, 27 Jun 2004 16:29:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264266AbUF0U3z (ORCPT ); Sun, 27 Jun 2004 16:29:55 -0400 Received: from mx1.redhat.com ([66.187.233.31]:39107 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S264265AbUF0U3w (ORCPT ); Sun, 27 Jun 2004 16:29:52 -0400 Date: Sun, 27 Jun 2004 13:29:45 -0700 From: Pete Zaitcev To: Alan Stern Cc: Greg KH , , , , , , , , zaitcev@redhat.com Subject: Re: drivers/block/ub.c Message-Id: <20040627132945.70350f2a@lembas.zaitcev.lan> In-Reply-To: References: <20040627050201.GA24788@kroah.com> Organization: Red Hat, Inc. X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 823 Lines: 20 On Sun, 27 Jun 2004 11:23:10 -0400 (EDT) Alan Stern wrote: > + * -- use serial numbers to hook onto same hosts (same minor) after > disconnect It was a poor wording by me. It refers to the drift of naming due to increments in usb_host_id. After a disconnect and reconnect, /dev/uba1 refers to the device, but /proc/partitions says "ubb". To correct this, I have to set gendisk->fist_minor before calling add_disk(), but in order to do that, a driver has to track devices somehow. A serial number looks like an obvious candidate for a key. -- Pete - 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/