2002-09-11 05:37:52

by Peter Chubb

[permalink] [raw]
Subject: /proc/partitions gets name wrong for IDE discs


The `all of disc' name in /proc/partitions is coming out as `<NULL>'
instead of /dev/hda or similar when not using devfs, in current BK.

major minor #blocks name

9 0 240120512 <NULL>
3 0 4202415 <NULL>
3 1 979933 hda1
3 2 979965 hda2
3 3 2241067 hda3
22 0 120060864 <NULL>
22 1 120059887 hdc1
22 64 120060864 <NULL>
22 65 120060830 hdd1



--
Dr Peter Chubb [email protected]
You are lost in a maze of BitKeeper repositories, all almost the same.


2002-09-11 09:39:18

by Alexander Viro

[permalink] [raw]
Subject: Re: /proc/partitions gets name wrong for IDE discs



On Wed, 11 Sep 2002, Peter Chubb wrote:

>
> The `all of disc' name in /proc/partitions is coming out as `<NULL>'
> instead of /dev/hda or similar when not using devfs, in current BK.
>
> major minor #blocks name
>
> 9 0 240120512 <NULL>
> 3 0 4202415 <NULL>
> 3 1 979933 hda1
> 3 2 979965 hda2
> 3 3 2241067 hda3
> 22 0 120060864 <NULL>
> 22 1 120059887 hdc1
> 22 64 120060864 <NULL>
> 22 65 120060830 hdd1

Can't reproduce it.

% cat /proc/partitions
major minor #blocks name

45 0 39082680 pda
45 1 8389048 pda1
45 2 524664 pda2
11 0 1048575 sr0
3 0 29300040 hda
3 1 16033 hda1
3 2 1052257 hda2
3 3 104422 hda3
3 4 1 hda4
3 5 56196 hda5
3 6 248976 hda6
3 7 248976 hda7
3 8 248976 hda8
3 9 586341 hda9
3 10 14201428 hda10
3 64 14668416 hdb
3 65 8389048 hdb1
%

2.5.34-BK, no devfs in sight...