nspawn: split out copy_devnode_one() and bind_mount_devnode() from copy_devnodes()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Nov 2024 04:17:42 +0000 (13:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Nov 2024 07:54:06 +0000 (16:54 +0900)
commita1fcaa1549d86098d0ba75254b6afc96c786b3b6
treeb0aa5d2c35c64906f9a9b193c54bce90ce7fe940
parent330e44e293d5db71a9bb28d3d13e2ee931b82ee6
nspawn: split out copy_devnode_one() and bind_mount_devnode() from copy_devnodes()

While doing that, even if mknod() failed, we anyway try to fall back to
use bind mount if arg_uid_shift == 0.

Mostly no functional change, just refactoring and preparation for later commit.
src/nspawn/nspawn.c