aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/tools
diff options
context:
space:
mode:
authorGravatar Yue Gan <yueg@google.com>2016-04-14 08:27:41 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-04-14 11:10:23 +0000
commit386f242788a3d0189e6882466105c57ec1149d20 (patch)
tree5e583adb39bdb2a1f806c054f410b63eec7bb901 /src/main/tools
parent7c50909b0f91026e4319f1ac6b9c2459484c0004 (diff)
Automated [] rollback of commit 525fa71b0d6f096e9bfb180f688a4418c4974eb4.
*** Reason for rollback *** Contributor finds some bugs and after fixing some bugs there are more bugs to fix now. *** Original change description *** Mount whole directories into the sandbox when possible This halves the overhead with sandboxing enabled vs disabled for a test that basically only mounts a bunch of files out of a directory, and slows that same test with a single extra file added to the directory (but not mounted) by only ~4%. The test is <https://gist.github.com/bsilver8192/10527a862ce16bb7f79a>; with 30000 inputs moved to a subdirectory and on... *** ROLLBACK_OF=119138157 -- MOS_MIGRATED_REVID=119828267
Diffstat (limited to 'src/main/tools')
-rw-r--r--src/main/tools/namespace-sandbox.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/tools/namespace-sandbox.c b/src/main/tools/namespace-sandbox.c
index a454a70ebe..04f1c9c734 100644
--- a/src/main/tools/namespace-sandbox.c
+++ b/src/main/tools/namespace-sandbox.c
@@ -134,10 +134,9 @@ static void Usage(int argc, char *const *argv, const char *fmt, ...) {
" -t <timeout> in case timeout occurs, how long to wait before killing "
"the child with SIGKILL\n"
" -d <dir> create an empty directory in the sandbox\n"
- " -M/-m <source/target> system file or directory to mount inside the "
- "sandbox\n"
- " Multiple files or directories can be specified and each of them "
- "will be mounted readonly.\n"
+ " -M/-m <source/target> system directory to mount inside the sandbox\n"
+ " Multiple directories can be specified and each of them will be "
+ "mounted readonly.\n"
" The -M option specifies which directory to mount, the -m option "
"specifies where to\n"
" mount it in the sandbox.\n"