devfs - Fix a few issues
commit1bef7707524ce5755a66555932471ef19a6dfa0d
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 17 Mar 2018 18:23:39 +0000 (17 11:23 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 17 Mar 2018 18:23:39 +0000 (17 11:23 -0700)
treed4beb135874fc29454dad45725f03bce3da4abf6
parent0049c59cb7fdf51f94e6d972d59c5f19d86aaad4
devfs - Fix a few issues

* Report when an attempt is made to add a device node under a
  non-directory device node.

* devfs_freep() no longer asserts if the node is not linked.
  It's ok for the node to not be linked.  It still asserts on
  double calls to devfs_freep().

* Clean up nlinks during normal removals of nodes.

* Also iterate and remove orphan nodes on unmount.

* Misc syntax cleanups.
sys/vfs/devfs/devfs_core.c