Skip to contentSkip to conversation

2.6.0t7: /proc/partitions names not devfs like...

DISCUSSION Ludovic Drolez 2 participants 2 messages Oct 16, 2003 – Oct 17, 2003

lore
Share & tools
lore
#0 lore raw

Hi !

I'm using devfs on a small 2.6.0t7 kernel and I have software which relies on the exactitude of /proc/partitions.
The problem is that in /proc/partition I have something like

  3     0   19925880 hda
  3     1   19920568 hda1

where a 2.4.x kernel gave me:

  3     0   19925880 ide/host0/bus0/target0/lun0/disc
  3     1   19920568 ide/host0/bus0/target0/lun0/part1

I've enabled the following options:

CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y

Any idea, why this has changed ?

Cheers,

Signature · 3 lines
Ludovic DROLEZ                                       Free&ALter Soft
152, rue de Grigy - Technopole Metz 2000                  57070 METZ
tel : 03 87 75 55 21                            fax : 03 87 75 19 26
#1 lore raw
Quoted 14 lines · Ludovic Drolez

Hi !

I'm using devfs on a small 2.6.0t7 kernel and I have software which relies on the exactitude of /proc/partitions.
The problem is that in /proc/partition I have something like

   3     0   19925880 hda
   3     1   19920568 hda1

where a 2.4.x kernel gave me:

   3     0   19925880 ide/host0/bus0/target0/lun0/disc
   3     1   19920568 ide/host0/bus0/target0/lun0/part1
Quoted 6 lines

I've enabled the following options:

CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y

Any idea, why this has changed ?

Yes, the 2.4 devfs behaviour was buggy - it was different from the non-devfs output. Note that you can't rely on the names in /proc/partitions anyway as the system administrator is free to name the block devices however he wants.