On Tue, Oct 29, 2019 at 12:39 PM Toke Høiland-Jørgensen <toke@xxxxxxxxxx> wrote: > > From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> > > The existing pin_*() functions all try to create the parent directory > before pinning. Move this check into the per-object _pin() functions > instead. This ensures consistent behaviour when auto-pinning is > added (which doesn't go through the top-level pin_maps() function), at the > cost of a few more calls to mkdir(). > > Signed-off-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> > --- Makes sense, thanks. Acked-by: Andrii Nakryiko <andriin@xxxxxx> > tools/lib/bpf/libbpf.c | 61 +++++++++++++++++++++++++++--------------------- > 1 file changed, 34 insertions(+), 27 deletions(-) > [...]