chiark / gitweb /
nspawn: be less liberal about creating bind mount destinations
authorDave Reisner <dreisner@archlinux.org>
Thu, 19 Sep 2013 18:30:07 +0000 (14:30 -0400)
committerDave Reisner <dreisner@archlinux.org>
Thu, 19 Sep 2013 18:48:43 +0000 (14:48 -0400)
commitd2421337f6e7d5a6730599e929232689acb09394
tree19668cce0ff30f84e15484b3e161bc86e4574957
parente7363c59d69b71a4327429719e24cab9020e2796
nspawn: be less liberal about creating bind mount destinations

Previously, if a file's bind mount destination didn't exist, nspawn
would blindly create a directory, and the subsequent bind mount would
fail. Examine the filetype of the source and ensure that, if the
destination does not exist, that it is created appropriately.

Also go one step further and ensure that the filetypes of the source
and destination match.
src/nspawn/nspawn.c