Re: (Semi-random) thoughts on device tree structure and devfs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johnny Billquist
Date: Monday, March 8, 2010 - 7:02 am

It would help if you started by showing where your disk would be in the 
device tree. Then I can tell you what (more or less) you need in your 
config file.

USB, or whatever else, is no magic. You can specify explicitly where 
your disk is, and have it show up with a specific device number even 
with other devices attached anywhere.

I seem to remember that way back there was even a tool (in pkgsrc?) 
which extracted your current device setup, and created a config file 
from that, so that you would always get the same enumeration, no matter 
what else showed up on the machine.

The point is, the config file totally, and exactly describes your 
hardware setup. Your suggestion would simply mean that this information 
would be duplicated in the file system.
The config file have the additional "feature" of actually making the 
device appear with the same name, even if you move it around, by just 
changing the config file. Everything else in the system will not have to 
be told after that. And the names exposed, and referred to, are simple 
and short, even though you do have the full tree described in the config 
file.

Someone else mentioned that the problem have grown for the simple reason 
that hardware configurations change much more often now than in the 
past. I would agree with that. However, for vital pieces of the 
hardware, the setup normally don't change that much (such as the disks 
normally used by the system).

So, the device configuration and enumeration is only random so far as 
that if you tell the system that it is okay to give a device a random 
number, it will actually possibly do that.
Otherwise it is totally predictable.

If you, on the other hand, do move your disk around (be that by using 
USB and different ports and hubs, or different controllers), neither the 
old config, nor your new solution will help. The disk will change 
identity (or path) (well, with the old config, it might actually keep 
it's identity, but that's a chancy proposition at best). This is why a 
way to refer to disks by some other property would be nice (such as disk 
labels).

(DEC actually solved this a long time ago, by letting disks have 
identities, which were not in any way related to anything else than the 
disk, and that was the unit numbers on MSCP disks, which you preferrably 
kept unique for the whole system, but as with many other nice things, it 
fell out of fashion with revolution of PC commodity hardware, which have 
a foresight shorter than my nose.)

	Johnny


Masao Uebayashi wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
(Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sun Mar 7, 2:43 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Sun Mar 7, 3:12 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Sun Mar 7, 9:31 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Sun Mar 7, 9:41 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Mon Mar 8, 7:02 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Mon Mar 8, 9:59 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 8:25 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 8:48 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 9:35 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 9:43 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 10:46 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 11:41 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Tue Mar 9, 11:57 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Tue Mar 9, 12:01 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 12:23 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 12:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Tue Mar 9, 12:51 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 12:55 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 2:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 5:57 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:06 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:36 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:39 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Wed Mar 10, 6:46 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:50 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Wed Mar 10, 7:41 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Wed Mar 10, 1:53 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Thu Mar 11, 7:32 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Thu Mar 11, 10:18 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Thu Mar 11, 11:37 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Thu Mar 11, 11:42 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Quentin Garnier, (Thu Mar 11, 11:47 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eduardo Horvath, (Thu Mar 11, 12:06 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Thu Mar 11, 1:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Thu Mar 11, 2:24 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Fri Mar 12, 1:20 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Fri Mar 12, 4:37 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 10:51 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:00 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:08 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:11 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:16 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:25 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:33 pm)