public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Rolf Eike Beer <eike-kernel@sf-tec.de>
Cc: linux-kernel@vger.kernel.org, dm-devel@redhat.com
Subject: Re: [BUG?] register_blkdev: failed to get major for device mapper
Date: Mon, 19 Feb 2007 02:29:55 -0800	[thread overview]
Message-ID: <20070219022955.f734006a.akpm@linux-foundation.org> (raw)
In-Reply-To: <200702191101.09192.eike-kernel@sf-tec.de>

On Mon, 19 Feb 2007 11:01:02 +0100 Rolf Eike Beer <eike-kernel@sf-tec.de> wrote:

> Andrew Morton wrote:
> > On Fri, 16 Feb 2007 14:37:28 +0100
> > Rolf Eike Beer <eike-kernel@sf-tec.de> wrote:
> 
> > > I can't bring up my machine with root LVM anymore using x86_64. The same
> > > machine from same kernel tree boots fine as x86. The error message is
> > > quoted in subject. The tree is at
> > > 86a71dbd3e81e8870d0f0e56b87875f57e58222b (for those not using git:
> > > somewhere after 2.6.20).
> >
> > Does this fix it?  I don't see why it would, but this was recently added.
> 
> Yes. But now usb complains "unable to get a dynamic major for usb endpoints". 
> Nevertheless the USB mouse works.
> 

That's just nutty.

Can you add this, see what it says just prior to that "unable to get a
dynamic major for usb endpoints"?


--- a/fs/char_dev.c~a
+++ a/fs/char_dev.c
@@ -108,15 +108,21 @@ __register_chrdev_region(unsigned int ma
 	/* temporary */
 	if (major == 0) {
 		for (i = ARRAY_SIZE(chrdevs)-1; i > 0; i--) {
+			printk("%s: i = %d: ", __FUNCTION__, i);
 			/*
 			 * Disallow the LANANA-assigned LOCAL/EXPERIMENTAL
 			 * majors
 			 */
 			if ((60 <= i && i <= 63) || (120 <= i && i <= 127) ||
-					(240 <= i && i <= 254))
+					(240 <= i && i <= 254)) {
+				printk("skipped\n");
 				continue;
-			if (chrdevs[i] == NULL)
+			}
+			if (chrdevs[i] == NULL) {
+				printk("free\n");
 				break;
+			}
+			printk("used\n");
 		}
 
 		if (i == 0) {
_


  reply	other threads:[~2007-02-19 10:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-16 13:37 [BUG?] register_blkdev: failed to get major for device mapper Rolf Eike Beer
2007-02-16 16:16 ` Dan Smith
2007-02-17  0:09 ` Andrew Morton
2007-02-19 10:01   ` Rolf Eike Beer
2007-02-19 10:29     ` Andrew Morton [this message]
2007-02-19 12:40       ` Rolf Eike Beer
2007-02-19 14:39         ` Rolf Eike Beer
2007-02-19 19:59           ` Andrew Morton
2007-02-20  7:24             ` Rolf Eike Beer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070219022955.f734006a.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=dm-devel@redhat.com \
    --cc=eike-kernel@sf-tec.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox