On Tuesday June 20, [EMAIL PROTECTED] wrote:
> For some time, mdadm's been dumping core on me in my uClibc-built
> initramfs. As you might imagine this is somewhat frustrating, not least
> since my root filesystem's in LVM on RAID. Half an hour ago I got around
> to debugging this.
> 
> Imagine my surprise when I found that it was effectively guaranteed to
> crash: map_dev() in util.c is stubbed out for uClibc builds, and
> returns -1 at all times. That means that code in, among other places,
> config.c:load_partitions() is guaranteed to segfault, which is a bit
> tough if you're using the (sane) default `DEVICE partitions' in your
> mdadm.conf.

I'm confused.  map_dev doesn't return -1, it returns NULL.
And the code in load_partitions() handles a NULL return.
So I cannot see why it would be core dumping.
If you have more details, I'd be really interested.

That said: utils doesn't handle the case for 'ftw not available' as
well as it could.  I will fix that.

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

Reply via email to