Manu Bretelle wrote: > `fs_kfuncs.c`'s `test_xattr` would fail the test even when the > filesystem did not support xattr, for instance when /tmp is mounted as > tmpfs. > > This change checks errno when setxattr fail. If the failure is due to > the operation being unsupported, we will skip the test (just like we > would if verity was not enabled on the FS. > > Before the change, fs_kfuncs test would fail in test_axattr: > ... > Fixes: 341f06fdddf7 ("selftests/bpf: Add tests for filesystem kfuncs") > Signed-off-by: Manu Bretelle <chantr4@xxxxxxxxx> > --- Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>