vol_id uuid detection regression
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: udev
I've found that Jaunty's udev makes an incorrect /dev/disk/by-uuid/ symlink for one of my ext3 partitions, where Intrepid's version got the right uuid. On investigation, it turned out that the partition in question contained residue of an NTFS bootsector (rather surprisingly, since the partition in question was a manufacturer's preload of *Linux*!)
I'm aware there have been multiple bugs on this general topic previously closed as "Won't Fix", however in this case I believe there's a fairly obvious and fixable bug in the code: In my scenario, the ntfs prober did *not* detect the presence of an ntfs filesystem (i.e. vol_id --probe-all returned *only* ext3). However, if you examine the source of the ntfs prober, it overwrites the uuid field of the volume_id object long before it actually decides there's a valid filesystem there - this resulted in vol_id returning the rather bizarre combination of type=ext3, but a uuid populated by the ntfs prober.
I think the probers should only write into the result object *after* they've completed all their checks and decided that they are reporting the presence of their filesystem type.
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: udev 139-1
ProcEnviron:
LC_COLLATE=C
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: udev
Uname: Linux 2.6.28-8-generic x86_64
Hope this fixes it: git.kernel. org/?p= linux/hotplug/ udev.git; a=commitdiff; h=1597517c9effc 275b8b89c8722c8 08777c17173f
http://
Thanks!