Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Should MAKEDEV be able to create /dev/filemon ?



On Sat, 21 Nov 2015, Martin Husemann wrote:

On Sat, Nov 21, 2015 at 12:16:33PM +0800, Paul Goyette wrote:
While trying to test some recent changes to filemon(4), I discovered
that not only does a default system installation not create a
/dev/filemon but the supplied /dev/MAKEDEV script doesn't even know
how to create it!

It should be fairly easy to add a new entry

	filemon)
		mkdev filemon c 202 666
		;;

to the big case statement?

Funny, I have this in my local tree (but can not remember testing it).

I'll be happy to test on amd64


Index: MAKEDEV.tmpl
===================================================================
RCS file: /cvsroot/src/etc/MAKEDEV.tmpl,v
retrieving revision 1.176
diff -u -p -r1.176 MAKEDEV.tmpl
--- MAKEDEV.tmpl	8 Nov 2015 23:23:30 -0000	1.176
+++ MAKEDEV.tmpl	21 Nov 2015 10:32:52 -0000
@@ -818,6 +818,7 @@ all)
	makedev dk8 dk9 dk10 dk11 dk12 dk13 dk14 dk15
	makedev ccd0 ccd1 ccd2 ccd3
	makedev cgd0 cgd1 cgd2 cgd3
+	makedev filemon
	makedev fss0 fss1 fss2 fss3
	makedev md0 md1
	makedev raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
@@ -2164,6 +2165,10 @@ dtrace)
	mkdev dtrace/dtrace c %dtrace_chr% 0 600
	;;

+filemon)
+	mkdev filemon c %filemon_chr% 0 666
+	;;
+
fw[0-9]*)
	unit=${i#fw}
	for j in 0 1 2 3



+------------------+--------------------------+-------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
+------------------+--------------------------+-------------------------+


Home | Main Index | Thread Index | Old Index