[klibc] mkrootdev utility

Olaf Hering olh at suse.de
Tue Apr 11 08:33:18 PDT 2006


 On Tue, Apr 11, Aaron Griffin wrote:

> On 4/11/06, Olaf Hering <olh at suse.de> wrote:
> >  On Tue, Apr 11, Aaron Griffin wrote:
> >
> > > +        return create_dev("/dev/root", rootdev);
> >
> > That always bothered me. Cant you give it just the kernel name?
> 
> In addition to HPA's response, I always found it kind of like a
> shortcut.  Firstly, the /dev nodes generally won't persist on to
> userspace, so the naming is arbitrary.  Secondly, it seems easier, in

The string will end up in /proc/mounts. taking the major:minor pair,
walk /sys/block and grab the dirname of the found 'dev' entry cant be
that hard.



More information about the klibc mailing list