[PATCH] Support for running mdev from rootfs

Jason Schoon floydpink at gmail.com
Mon Jun 12 03:19:19 UTC 2006


On 6/11/06, Rob Landley <rob at landley.net> wrote:
> On Thursday 08 June 2006 3:22 pm, Jason Schoon wrote:
> > I wanted to use mdev from a rootfs, but the opendir calls fail in that
> > filesystem.  This patch falls back to using stat when that occurs.
>
> I believe this is actually a workaround for a uClibc bug rather than something
> specific to rootfs, but in the continuing absence of a 0.9.29 release, it's
> needed anyway.

That would be understandable, as I am building a static busybox
against uClibc for my initramfs.

> However, I've queued it up without the check for entry->d_type.  If we can't
> rely on that then we shouldn't waste the bytes to look at it at all.
>

Yeah, my check was bit bloated and on the paranoid side.  I was erring
on the side of keeping the code as similar as possible.



More information about the busybox mailing list