devfs
[Top] [All Lists]

RE: [Cooker] raw device & devfs

To: Cooker list <cooker@xxxxxxxxxxxxxxxxxx>
Subject: RE: [Cooker] raw device & devfs
From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
Date: 09 Dec 2001 17:07:16 +0300
Cc: devfs mailing list <devfs@xxxxxxxxxxx>, Mandrake kernel list <kernel@xxxxxxxxxxxxxxxx>
In-reply-to: <000301c17d61$bc4ff160$21c9ca95@xxxxxxxxxxxxxx>
References: <000301c17d61$bc4ff160$21c9ca95@xxxxxxxxxxxxxx>
Sender: owner-devfs@xxxxxxxxxxx
On Срд, 2001-12-05 at 10:52, Borsenkow Andrej wrote:
> 
> > 
> > [root@bononcini guillaume]# /etc/init.d/rawdevices start
> > Affectation des périphériques
> >            /dev/raw/raw1  -->   /dev/hdc
> > Cannot open master raw device '/dev/rawctl' (No such file or
> directory)
> > fini
> > 
> 
> No wonder, there is no support for devfs in raw.c
> 

O.K., here is a patch that adds support for devfs to raw.c. It
precreates /dev/raw/raw* nodes for all available minors; I do not
particularly like it, but raw command needs existing devices to get
minor number from; also, strictly speaking, all of them do exist as soon
as driver is loaded.

Is it acceptable from devfs point of view? It seems to work here.

Patch is against 2.4.16-4mdk

Guillaume, could you test it?

-andrej

Attachment: raw.c.diff
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>