Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755196AbZAJGSx (ORCPT ); Sat, 10 Jan 2009 01:18:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752139AbZAJGSo (ORCPT ); Sat, 10 Jan 2009 01:18:44 -0500 Received: from mail-ew0-f17.google.com ([209.85.219.17]:45442 "EHLO mail-ew0-f17.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752085AbZAJGSn (ORCPT ); Sat, 10 Jan 2009 01:18:43 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 10 Jan 2009 07:18:41 +0100 Message-ID: Subject: Re: [PATCH] block: Fix register_disk() when name has '/' in it From: Kay Sievers To: Roland Dreier Cc: Jens Axboe , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1324 Lines: 30 On Sat, Jan 10, 2009 at 07:11, Roland Dreier wrote: > > > Commit 3ada8b7e ("block: struct device - replace bus_id with dev_name(), > > > dev_set_name()") deleted the code in register_disk() that changed a '/' > > > to a '!' in the device name when registering a disk. > > > > Hmm, this is done in the core, for all devices since a while: > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9f255651fb41c111ee35a2ae632df8ce9bd61def > > > > We should find what is going wrong here, instead of putting that code back. > > The commit you point to is for kobject_set_name() ... but dev_set_name() > is still just setting dev->bus_id (at least in Linus's current tree). Ah, right, it will only work after dev_name() returns the kobject name, which it already does with the patches in our queue, so we missed that. Sorry. > If you want I can send a patch putting the conversion into > dev_set_name() for now instead. Sounds good, we can remove that with the final conversion and the removal of the bus_id field. Thanks, Kay -- 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/