FreeBSD/src e3fdd05 (r353447)sys/fs/devfs devfs_vnops.c

devfs_vptocnp(): correct the component name when node is not at top.

Node' cdp.si_name is the full path as provided by make_dev(9), it
should not be returned by VOP_VPTOCNP() when only the last component
is requested.  Use the dirent entry instead.

With this note, handling of VDIR and VCHR nodes only differs in
handling of root vnode, which simplifies and unifies the logic.

Reported by:    Li, Zhichao1 <Zhichao_Li1 at Dell.com>
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+17-28sys/fs/devfs/devfs_vnops.c
+17-281 files

UnifiedSplitRaw