9ns: move the symlink check after the mount check
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 24 Apr 2019 01:52:17 +0000 (21:52 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 24 Apr 2019 02:04:18 +0000 (22:04 -0400)
commitbcee325b16c508b1baf3dd14d5b13def573d9041
tree0948e934544967d1a2d4d7564b4b13cc3ef39112
parent309cd355f246acfc01d5b1493ce4ca83e56e076e
9ns: move the symlink check after the mount check

Although you can't bind a symlink (so that it is the domount side of a
mount point), the code is a bit cleaner if we do the symlink check after
the 'mount/nomount' spot.

Also, if we ever build in support for binding symlinks (src_path / WHAT)
onto the namespace, then we'll already have support for that on the
intermediate path names in a walk.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ns/chan.c