Now that the rest of the EAL is adjusted to not create any shared
files, prevent runtime directory from ever being created.
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
}
/* create runtime data directory */
- if (eal_create_runtime_dir() < 0) {
+ if (internal_config.no_shconf == 0 &&
+ eal_create_runtime_dir() < 0) {
rte_eal_init_alert("Cannot create runtime directory\n");
rte_errno = EACCES;
return -1;
}
/* create runtime data directory */
- if (eal_create_runtime_dir() < 0) {
+ if (internal_config.no_shconf == 0 &&
+ eal_create_runtime_dir() < 0) {
rte_eal_init_alert("Cannot create runtime directory\n");
rte_errno = EACCES;
return -1;