Subject: Re: improvements to mknod(8)
To: David Laight <david@l8s.co.uk>
From: Perry E. Metzger <perry@piermont.com>
List: tech-userlevel
Date: 02/07/2003 17:25:56
David Laight <david@l8s.co.uk> writes:
> Add the following arguments to mknod:
> 	-m mode			set file mode
> 	-u user			set user id
> 	-g group		set group id

I like!

> 	-f file			read a list of changes from file
> 				if file is '-' read from stdin.

I'm not sure I like -- we have mtree for this already, don't we?

> Additionally allow the name of a driver to be given instead of a
> major number.  This ought to allow an architecture independant
> MAKEDEV script to be written.  A simple addition to the sysctl
> interface to return the contents of the devsw_conv structure
> is need to make this work.

Interesting, but one wonders if devfs wouldn't be a better move as
long as you're hacking at the kernel this way. That's a much bigger
bang for the buck. Get rid of MAKEDEV entirely....


-- 
Perry E. Metzger		perry@piermont.com