summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2003-12-21 17:37:26 +0000
committerlukem <lukem@NetBSD.org>2003-12-21 17:37:26 +0000
commitfcdfdbba5cb65b818d2c4f27aff20d1f3312378f (patch)
tree988edebf670b5a1debd9bf0b00b5417e6e52cc82 /sys/dev/raidframe
parent9e396f0ea949fe201717c2f097e06c1ea34141cd (diff)
Rework MAKEDEV:
* Use "mknod -F netbsd -r" to create nodes, instead of "rm ; mknod; chmod; chown". This means permissions & ownership of existing nodes will not be changed. This is up to 30% faster when populating an empty /dev, and nearly 2x faster when re-running on an existing /dev. * New options: -f force change of permission & ownership of existing devices -m mknod override name/path of mknod program (which defaults to $TOOL_MKNOD, then "mknod"). -s generate mtree(8) specfile instead of creating devices * Remove /usr/etc from $PATH; not needed anymore. * Provide functions to create devices & directories: mkdev name [b|c] major minor [mode{=600} [gid{=0} [uid{=0}]]] create device node `name' with the appropriate permissions lndev src target create a symlink from src to target makedir dir mode create directory with appropriate mode * UIDs and GIDs are hardcoded in at MAKEDEV generation time. (Unfortunately there's not a simple way of determining a GID a la "id -n user" for determining a UID). This was tested by generating MAKEDEV for each MACHINE,MACHINE_ARCH combination and comparing the results of "MAKEDEV all" from the previous version to the new one. (This testing actually highlighted mistakes in the previous configuration!) Simplify distrib/common/Makefile.makedev to use "MAKEDEV -s"
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions