[dpdk-dev] [PATCH] eal: move runtime dir creation after args parse

Andrew Rybchenko arybchenko at solarflare.com
Tue May 15 13:36:44 CEST 2018


On 05/15/2018 01:44 PM, Anatoly Burakov wrote:
> The intention of the original code was to create runtime data
> directory as early as possible, however it was moved too early,
> before the arguments were parsed, resulting in --file-prefix
> option essentially not working.
>
> Fix this by moving eal_create_runtime_dir() to after command
> line arguments parsing.
>
> Fixes: 56236363b481 ("eal: add directory for runtime data")
>
> Reported-by: Andrew Rybchenko <arybchenko at solarflare.com>
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>

Tested-by: Andrew Rybchenko <arybchenko at solarflare.com>

I've tested it quickly and it solves the problem I observe.
I suppose it is OK that the directory remains after application exit.


More information about the dev mailing list