* vol_id: broken linux_raid detection
@ 2007-02-02 22:23 Michael Prokop
2007-02-02 23:02 ` Kay Sievers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Michael Prokop @ 2007-02-02 22:23 UTC (permalink / raw)
To: linux-hotplug
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 <kay.sievers@suse.de>
| 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-
--
,'"`. 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vol_id: broken linux_raid detection
2007-02-02 22:23 vol_id: broken linux_raid detection Michael Prokop
@ 2007-02-02 23:02 ` Kay Sievers
2007-02-02 23:27 ` Michael Prokop
2007-02-03 0:06 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2007-02-02 23:02 UTC (permalink / raw)
To: linux-hotplug
On 2/2/07, Michael Prokop <mika@grml.org> wrote:
> 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 <kay.sievers@suse.de>
> | 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vol_id: broken linux_raid detection
2007-02-02 22:23 vol_id: broken linux_raid detection Michael Prokop
2007-02-02 23:02 ` Kay Sievers
@ 2007-02-02 23:27 ` Michael Prokop
2007-02-03 0:06 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Michael Prokop @ 2007-02-02 23:27 UTC (permalink / raw)
To: linux-hotplug
* Kay Sievers <kay.sievers@vrfy.org> wrote:
> On 2/2/07, Michael Prokop <mika@grml.org> wrote:
>> 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 <kay.sievers@suse.de>
>> | 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?
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.
> 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-
--
,'"`. 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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vol_id: broken linux_raid detection
2007-02-02 22:23 vol_id: broken linux_raid detection Michael Prokop
2007-02-02 23:02 ` Kay Sievers
2007-02-02 23:27 ` Michael Prokop
@ 2007-02-03 0:06 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2007-02-03 0:06 UTC (permalink / raw)
To: linux-hotplug
On 2/3/07, Michael Prokop <mika@grml.org> wrote:
> * Kay Sievers <kay.sievers@vrfy.org> wrote:
> > On 2/2/07, Michael Prokop <mika@grml.org> wrote:
>
> >> 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 <kay.sievers@suse.de>
> >> | 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?
>
> 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.
>
> > 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
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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-02-03 0:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-02 22:23 vol_id: broken linux_raid detection Michael Prokop
2007-02-02 23:02 ` Kay Sievers
2007-02-02 23:27 ` Michael Prokop
2007-02-03 0:06 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).