1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix typo and add an example for running in privileged mode

This commit is contained in:
Steffen Vogel 2019-06-26 15:55:52 +02:00 committed by Steffen Vogel
parent 20f17bca42
commit 8e5eca92eb

View file

@ -255,8 +255,10 @@ int kernel_set_nr_hugepages(int nr)
f = fopen(PROCFS_PATH "/sys/vm/nr_hugepages", "w");
if (!f){
if (access("/.dockerenv", F_OK) != -1)
warning("This functionality is unavilable in this mode. Please run in the privileged mode.");
if (access("/.dockerenv", F_OK) != -1) {
warning("This functionality is unavailable in this mode. Please run the Docker container in the privileged mode:");
warning(" $ docker run --privilged ...");
}
else
serror("Failed to open %s", PROCFS_PATH "/sys/vm/nr_hugepages");
}