Karel Zak wrote:

 BTW, if I read correctly code in e2fsprogs/lib/blkid/devname.c
 it doesn't work as expected when you have in /proc/partitions:

    sda
    sda1
    sdb    <---- !
    loop0

 in that case the heuristic in the probe_all() function skips
 unpartitioned disk "sdb".

    Karel

PS: I have set a breakpoint in mount: Seems that it gets
"/dev/sdf" from libblkid, instead of /dev/sdd or /dev/sdg.
If I run "blkid -t LABEL=music", then I get

# blkid -t LABEL=music
/dev/sdf: LABEL="music" UUID="0000-0001" TYPE="vfat"
/dev/sdg: LABEL="music" UUID="0000-0001" TYPE="vfat"
/dev/sdd: LABEL="music" UUID="0000-0001" TYPE="vfat"
/dev/sdc: LABEL="music" UUID="0000-0001" TYPE="vfat"
# cat /proc/partitions
major minor  #blocks  name

   8     0  244198584 sda
   8     1   15623212 sda1
   8     2    1951897 sda2
   8     3   15623181 sda3
   8     4          1 sda4
   8     5  210997678 sda5
   8    16   58605120 sdb
   8    17   58604528 sdb1
 253     0   58604012 dm-0
   8    48   11714864 sdd

The output of blkid is surely not correct. Esp. there is no
/dev/sdf or /dev/sdc.



Regards

Harri

-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to