Closed qmonnet closed 2 months ago
Hi, qmonnet The problem seems still exist in 6.10-rc4, when i run a test case:
libbpf: specified path /home/ubuntu/test/sock_ops_map is not on BPF FS │
Error: failed to pin all maps
No one fixes it right?Maybe i can submit a patch
Correct, nobody has fixed the issue, and a patch is welcome, thanks! :)
Correct, nobody has fixed the issue, and a patch is welcome, thanks! :)
Thank you for your reply, i will send it later
Daniel just merged the patch to bpf-next, thanks a lot! It will land in this repo at the next sync.
Daniel just merged the patch to bpf-next, thanks a lot! It will land in this repo at the next sync.
Daniel just merged the patch to bpf-next, thanks a lot! It will land in this repo at the next sync.
Hi qmonnet, Thank you for merging my patch!
Looking at the code around mounting the bpffs in bpftool's
prog.c
, I see that we don't callmount_bpffs_for_pin()
for the directory where the user wants to pin maps, ifpinmaps
is passed:I haven't tested it though, but I expect the map pinning to fail if we pass a
pinmaps
directory that is not under the bpffs.Originally posted by @qmonnet in https://github.com/libbpf/bpftool/issues/100#issuecomment-1978460616