[klibc] [PATCH] kinit
Volker Dormeyer
volker at ixolution.de
Thu Mar 11 00:28:09 PST 2004
On Wed, Mar 10, 2004 at 10:28:30AM -0800,
H. Peter Anvin <hpa at zytor.com> wrote:
> Volker Dormeyer wrote:
> >
> >try_name () determined "part" with minor 3 and "res" contained major 3.
> >Now, try_name () returned "6" and mknod () created /dev/root with
> >major 0 and minor 6. I did a left shift of 8 bits, to give mknod () an
> >appropriate 16 bit value of type dev_t.
> >
>
> NO NO NO NO NO NO NO NO NO NO NO NO NO...
>
> First of all, dev_t is 32 bits not 16. Use makedev() to create one.
Ah, I will see what I can do. It seems that using makedev () means some
additional changes in do_mounts.c.
Regards
Volker
--
Volker Dormeyer <volker at ixolution.de>
More information about the klibc
mailing list