linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* possible to mask nodes from being created ?
@ 2004-02-19 19:52 Mike Frysinger
  2004-02-21  0:35 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mike Frysinger @ 2004-02-19 19:52 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

i looked through the files in /etc/udev/ but wasnt able to figure out a way to 
keep udev from creating nodes i'll never use ...

for example, /dev/vc/ is populated with 64 nodes for the console and /dev/rd/ 
is populated with 16 nodes for ramdisks ... personally i know i'm never going 
to use 64 nodes for my console nor am i going to use 16 nodes for 
ramdisks ...

is there anyway for me to say 'only create tty[0-5]' or 'only create 
ram[0-3]' ?  note that even throwing them in subdirs and just not creating a 
symlink isnt good enough in my book ;)
-mike

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: possible to mask nodes from being created ?
  2004-02-19 19:52 possible to mask nodes from being created ? Mike Frysinger
@ 2004-02-21  0:35 ` Greg KH
  2004-02-21  0:53 ` Jon Smirl
  2004-02-21  3:23 ` Mike Frysinger
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2004-02-21  0:35 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Feb 19, 2004 at 02:52:08PM -0500, Mike Frysinger wrote:
> i looked through the files in /etc/udev/ but wasnt able to figure out a way to 
> keep udev from creating nodes i'll never use ...
> 
> for example, /dev/vc/ is populated with 64 nodes for the console and /dev/rd/ 
> is populated with 16 nodes for ramdisks ... personally i know i'm never going 
> to use 64 nodes for my console nor am i going to use 16 nodes for 
> ramdisks ...
> 
> is there anyway for me to say 'only create tty[0-5]' or 'only create 
> ram[0-3]' ?  note that even throwing them in subdirs and just not creating a 
> symlink isnt good enough in my book ;)

Yes there is.  Just make a rule that matches the devices that you do not
want to have created and do not specify a NAME field (or give it a empty
string.)  Something like:
	KERNEL="tty[6-9]", NAME=""
or just
	KERNEL="tty[6-9]"

Hope this helps.

greg k-h


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: possible to mask nodes from being created ?
  2004-02-19 19:52 possible to mask nodes from being created ? Mike Frysinger
  2004-02-21  0:35 ` Greg KH
@ 2004-02-21  0:53 ` Jon Smirl
  2004-02-21  3:23 ` Mike Frysinger
  2 siblings, 0 replies; 4+ messages in thread
From: Jon Smirl @ 2004-02-21  0:53 UTC (permalink / raw)
  To: linux-hotplug

I just changed to kernel includes to make fewer devices....

include/linux/tty.h:    1.23 1.24 jonsmirl 04/02/07 14:34:12 (modified, needs
delta)

@@ -10,8 +10,8 @@
  * resizing).
  */
 #define MIN_NR_CONSOLES 1       /* must be at least 1 */
-#define MAX_NR_CONSOLES	63	/* serial lines start at 64 */
-#define MAX_NR_USER_CONSOLES 63	/* must be root to allocate above this */
+#define MAX_NR_CONSOLES	15	/* serial lines start at 64 */
+#define MAX_NR_USER_CONSOLES 15	/* must be root to allocate above this */
 		/* Note: the ioctl VT_GETSTATE does not work for
 		   consoles 16 and higher (since it returns a short) */
 

--- Greg KH <greg@kroah.com> wrote:
> On Thu, Feb 19, 2004 at 02:52:08PM -0500, Mike Frysinger wrote:
> > i looked through the files in /etc/udev/ but wasnt able to figure out a way
> to 
> > keep udev from creating nodes i'll never use ...
> > 
> > for example, /dev/vc/ is populated with 64 nodes for the console and
> /dev/rd/ 
> > is populated with 16 nodes for ramdisks ... personally i know i'm never
> going 
> > to use 64 nodes for my console nor am i going to use 16 nodes for 
> > ramdisks ...
> > 
> > is there anyway for me to say 'only create tty[0-5]' or 'only create 
> > ram[0-3]' ?  note that even throwing them in subdirs and just not creating a
> 
> > symlink isnt good enough in my book ;)
> 
> Yes there is.  Just make a rule that matches the devices that you do not
> want to have created and do not specify a NAME field (or give it a empty
> string.)  Something like:
> 	KERNEL="tty[6-9]", NAME=""
> or just
> 	KERNEL="tty[6-9]"
> 
> Hope this helps.
> 
> greg k-h
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
> _______________________________________________
> Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
> Linux-hotplug-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel


==Jon Smirl
jonsmirl@yahoo.com

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: possible to mask nodes from being created ?
  2004-02-19 19:52 possible to mask nodes from being created ? Mike Frysinger
  2004-02-21  0:35 ` Greg KH
  2004-02-21  0:53 ` Jon Smirl
@ 2004-02-21  3:23 ` Mike Frysinger
  2 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2004-02-21  3:23 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

On Friday 20 February 2004 07:53 pm, Jon Smirl wrote:
> I just changed to kernel includes to make fewer devices....

> > Yes there is.  Just make a rule that matches the devices that you do not
> > want to have created and do not specify a NAME field (or give it a empty
> > string.)

ah both will work just fine, thanks guys
-mike

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-21  3:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-19 19:52 possible to mask nodes from being created ? Mike Frysinger
2004-02-21  0:35 ` Greg KH
2004-02-21  0:53 ` Jon Smirl
2004-02-21  3:23 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).