UPSTREAM: ANDROID: fuse-bpf: Add /sys/fs flags for fuse-bpf version

Note that this is specific for the non-upstreamed version

Bug: 202785178
Test: cat /sys/fs/fuse/fuse_bpf_major_version
Change-Id: I68f9ca56778874975428839dfc1fd8f48b11bd75
Signed-off-by: Paul Lawrence <[email protected]>
This commit is contained in:
Paul Lawrence 2022-12-05 15:22:09 -08:00 • committed by Alexander Martinz
commit 010f25aa35
No known key found for this signature in database
GPG key ID: CF15BDD9A321A9B2
2 changed files with 53 additions and 2 deletions

View file

@ -0,0 +1,19 @@
What: /sys/fs/fuse/features/fuse_bpf
Date: December 2022
Contact: Paul Lawrence <[email protected]>
Description:
Read-only file that contains the word 'supported' if fuse-bpf is
supported, does not exist otherwise
What: /sys/fs/fuse/bpf_prog_type_fuse
Date: December 2022
Contact: Paul Lawrence <[email protected]>
Description:
bpf_prog_type_fuse defines the program type of bpf programs that
may be passed to fuse-bpf. For upstream bpf program types, this
is a constant defined in a contiguous array of constants.
bpf_prog_type_fuse is appended to the end of the list, so it may
change and therefore its value must be read from this file.
Contents is ASCII decimal representation of bpf_prog_type_fuse