bunpen: namespace: improve docs around path edgecases

This commit is contained in:
2024-08-29 11:27:01 +00:00
parent d91e1d51c1
commit 39a7c1a6d9

View File

@@ -153,7 +153,9 @@ fn bind_leaf(old_fs: *fs::fs, new_fs: *fs::fs, user_path: *path::buffer) void =
};
};
// and now, perform the actual bind:
// and now, perform the actual bind mount:
// XXX: if the thing being mounted over is a symlink, the `mount` syscall will FAIL
// (and be swallowed). that's GOOD; we don't want to mount over a symlink.
let old_pathbuf = match (path::init("old", path_str)) {
case let e: path::error =>
log::printfln("[namespace] unable to construct old path for binding {}: {}", path_str, path::strerror(e));