Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755406AbZAJGae (ORCPT ); Sat, 10 Jan 2009 01:30:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751309AbZAJGa0 (ORCPT ); Sat, 10 Jan 2009 01:30:26 -0500 Received: from mail-ew0-f17.google.com ([209.85.219.17]:51397 "EHLO mail-ew0-f17.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbZAJGa0 (ORCPT ); Sat, 10 Jan 2009 01:30:26 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 10 Jan 2009 07:30:24 +0100 Message-ID: Subject: Re: [PATCH] driver core: Convert '/' to '!' in dev_set_name() 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: 1359 Lines: 28 On Sat, Jan 10, 2009 at 07:27, 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, but dev_set_name() > does not perform this conversion. > > This leads to amusing problems with disks that have '/' in their names: > for example a failure to boot with the root partition on a cciss device, > even though the kernel says it knows about the root device: > > VFS: Cannot open root device "cciss/c0d0p6" or unknown-block(0,0) > Please append a correct "root=" boot option; here are the available partitions: > 6800 71652960 cciss/c0d0 driver: cciss > 6802 1 cciss/c0d0p2 > 6805 2931831 cciss/c0d0p5 > 6806 34354908 cciss/c0d0p6 > 6810 71652960 cciss/c0d1 driver: cciss > > Fix this by adding code to change '/' to '!' in dev_set_name() to handle > this until dev_set_name() is converted to use kobject_set_name(). Great! Thanks a lot for fixing this, 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/