vol_id: broken linux_raid detection
Hi,
whereas vol_id displayed linux_raid_member as ID_FS_TYPE for partitions with filesystem type fd fine so far, I noticed a problem with current versions of udev. Using vol_id now displays the filesystem of the given partition (for example 'xfs') instead of 'linux_raid_member'. :(
I've tracked down the problem using bisect to the following commit:
,----
| aa68c048f84b95fd982cb0fb2210ea740dbebc64 is first bad commit | commit aa68c048f84b95fd982cb0fb2210ea740dbebc64 | Author: Kay Sievers <[email protected]> | Date: Wed Nov 15 20:41:25 2006 +0100 | | volume_id: fix endianess bug in linux_raid detection | | :040000 040000 aa1a4943fea035173411b1f5a70ee967007c14d4 9a58a1edba50f7e3aa5f9c33d8aa560ebbf00aa8 M extras
`----
I'm running a Debian based system using kernel 2.6.19 on a x86 system. Any hints? If you need any further information please let me know.
-mika-
Signature · 14 lines
,'"`. http://www.michael-prokop.at/ ( grml.org -» Linux Live-CD for texttool-users and sysadmins `._,' http://www.grml.org/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 9 lines · Michael Prokop
whereas
vol_iddisplayedlinux_raid_memberasID_FS_TYPEfor partitions with filesystem type fd fine so far, I noticed a problem with current versions of udev. Usingvol_idnow displays the filesystem of the given partition (for example 'xfs') instead of 'linux_raid_member'. :(I've tracked down the problem using bisect to the following commit:
,----
Quoted 8 lines
| aa68c048f84b95fd982cb0fb2210ea740dbebc64 is first bad commit | commit aa68c048f84b95fd982cb0fb2210ea740dbebc64 | Author: Kay Sievers <[email protected]> | Date: Wed Nov 15 20:41:25 2006 +0100 | | volume_id: fix endianess bug in linux_raid detection | | :040000 040000 aa1a4943fea035173411b1f5a70ee967007c14d4 9a58a1edba50f7e3aa5f9c33d8aa560ebbf00aa8 M extras
The volume is a member of a md raid set? What does:
/lib/udev/vol_id --probe-all /dev/...
print?
Kay
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 20 lines · Kay Sievers
Quoted 9 lines · Michael Prokop
whereas
vol_iddisplayedlinux_raid_memberasID_FS_TYPEfor partitions with filesystem type fd fine so far, I noticed a problem with current versions of udev. Usingvol_idnow displays the filesystem of the given partition (for example 'xfs') instead of 'linux_raid_member'. :(I've tracked down the problem using bisect to the following commit:
,----
Quoted 8 lines
| aa68c048f84b95fd982cb0fb2210ea740dbebc64 is first bad commit | commit aa68c048f84b95fd982cb0fb2210ea740dbebc64 | Author: Kay Sievers <[email protected]> | Date: Wed Nov 15 20:41:25 2006 +0100 | | volume_id: fix endianess bug in linux_raid detection | | :040000 040000 aa1a4943fea035173411b1f5a70ee967007c14d4 9a58a1edba50f7e3aa5f9c33d8aa560ebbf00aa8 M extras
Quoted 1 line
The volume is a member of a md raid set?
Yes, used to work fine under any circumstances so far. I'm testing the different vol_id/udev versions on the same system (using my live-cd), same setup, kernel, raid configuration,... just switching between the udev versions.
Quoted 3 lines
What does:
/lib/udev/vol_id--probe-all/dev/...
print?
Broken vol_id:
# /lib/udev/vol_id --probe-all /dev/hda1 xfs
Older, working vol_id:
# /lib/udev/vol_id --probe-all /dev/hda1 linux_raid_member xfs
thx && regards,
-mika-
Signature · 14 lines
,'"`. http://www.michael-prokop.at/ ( grml.org -» Linux Live-CD for texttool-users and sysadmins `._,' http://www.grml.org/ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 34 lines · Michael Prokop
Quoted 20 lines · Kay Sievers
Quoted 9 lines · Michael Prokop
whereas
vol_iddisplayedlinux_raid_memberasID_FS_TYPEfor partitions with filesystem type fd fine so far, I noticed a problem with current versions of udev. Usingvol_idnow displays the filesystem of the given partition (for example 'xfs') instead of 'linux_raid_member'. :(I've tracked down the problem using bisect to the following commit:
,----
Quoted 8 lines
| aa68c048f84b95fd982cb0fb2210ea740dbebc64 is first bad commit | commit aa68c048f84b95fd982cb0fb2210ea740dbebc64 | Author: Kay Sievers <[email protected]> | Date: Wed Nov 15 20:41:25 2006 +0100 | | volume_id: fix endianess bug in linux_raid detection | | :040000 040000 aa1a4943fea035173411b1f5a70ee967007c14d4 9a58a1edba50f7e3aa5f9c33d8aa560ebbf00aa8 M extrasQuoted 1 line
The volume is a member of a md raid set?
Yes, used to work fine under any circumstances so far. I'm testing the different vol_id/udev versions on the same system (using my live-cd), same setup, kernel, raid configuration,... just switching between the udev versions.
Quoted 3 lines
What does:
/lib/udev/vol_id--probe-all/dev/...
print?Broken
vol_id:
Quoted 8 lines
# /lib/udev/vol_id --probe-all /dev/hda1 xfsOlder, working
vol_id:# /lib/udev/vol_id --probe-all /dev/hda1 linux_raid_member xfs
I found it, and will fix it. We need to look for the signature in both endian encodings, because they are written to disk in cpu order:
hexdump Intel:
003b0000 fc 4e 2b a9 00 00 00 00 5a 00 00 00 00 00 00 00 |.N+.....Z.......|
hexdump PowerPC:
00000000 a9 2b 4e fc 00 00 00 00 00 00 00 5a 00 00 00 00 |.+N........Z....|
Oh man, what a crazy job, to guess filesystems. :)
Thanks,
Kay
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel