mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Andries.Brouwer@cwi.nl, Andrew Morton <akpm@digeo.com>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kdevt-diff
Date: Mon, 14 Apr 2003 21:28:01 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0304142103290.5042-100000@serv> (raw)
In-Reply-To: <Pine.LNX.4.44.0304141133390.19302-100000@home.transmeta.com>

Hi,

On Mon, 14 Apr 2003, Linus Torvalds wrote:

> > Expansion into what?
> 
> That's the point - Andries patch is a pure extension of the number space 
> into user space. 
> 
> If you think that clashes with anything else, than that "anything else" is 
> _broken_. 

It doesn't has to clash, but it only encourages waste. Encoding all kinds 
of information into dev_t has to plan for the worst case and that's the 
only reason to immediately go to 64 bits and most of the number space is 
simply unused and wasted.

> > The knowledge about dev_t is already reduced to a minimum in a lot of 
> > block device drivers. register_blkdev() is already pretty much a dummy and 
> > not a requirement anymore.
> 
> So why do you think Andries patch clashes?
> 
> Also, I don't think your patch is proper. The point about having a single
> disk number space means that IDE and SCSI disks would show up there too -
> users simply shouldn't need to care about the differences (which is not
> just major numbers, but also the silly difference in how the partitioning
> splits minor numbers).

Look at it this way: the whole range from 0 to ... is one big major 
number, so old device numbers show up their as well.
Only user space "knows" about the special from some of the bits, but the 
kernel certainly doesn't care.

> But at the same time, for backwards compatibility clearly they have to
> show up in the _old_ places too. Which really implies that there needs to
> be a mapping function for the old numbers into the proper block device
> queues etc, so that people can still use the old /dev nodes when they
> upgrade their kernel.

Why should the kernel care about this? Most programs only want to open 
/dev/sd... Until the system tools are updated they will only see the old 
numbers anyway, later they won't care anymore either.
You didn't want that a device shows twice under devfs (e.g. as sda and 
scsi/host0/bus0/target0/lun0). How is that suddenly different?

bye, Roman


  reply	other threads:[~2003-04-14 19:16 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-13 22:45 Andries.Brouwer
2003-04-14 17:51 ` Joel Becker
2003-04-14 18:00   ` Linus Torvalds
2003-04-14 19:15     ` Joel Becker
2003-04-14 19:34     ` Roman Zippel
2003-04-16 16:43     ` H. Peter Anvin
2003-04-14 18:12 ` Roman Zippel
2003-04-14 18:18   ` Linus Torvalds
2003-04-14 18:31     ` Roman Zippel
2003-04-14 18:40       ` Linus Torvalds
2003-04-14 19:28         ` Roman Zippel [this message]
2003-04-14 19:51           ` Linus Torvalds
2003-04-14 20:02             ` Roman Zippel
2003-04-15 13:37     ` Roman Zippel
2003-04-23 15:19       ` Pavel Machek
2003-04-14 22:01 Andries.Brouwer
2003-04-14 22:11 ` Joel Becker
2003-04-14 22:18   ` Valdis.Kletnieks
2003-04-14 22:28     ` Joel Becker
2003-04-16 16:48     ` H. Peter Anvin
2003-04-16 20:19       ` Andries Brouwer
2003-04-16 20:27         ` H. Peter Anvin
2003-04-15 14:04 Andries.Brouwer
2003-04-15 14:53 ` Roman Zippel

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=Pine.LNX.4.44.0304142103290.5042-100000@serv \
    --to=zippel@linux-m68k.org \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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

all inboxes | Powered by JetHome®