|
|
@ -12,11 +12,12 @@ code[4] provided with libattr (examples/copyattr.c).
|
|
|
|
This code has been in daily use by the author of this patch for just over five
|
|
|
|
This code has been in daily use by the author of this patch for just over five
|
|
|
|
years without any issues. What's missing though is the addition of tests for
|
|
|
|
years without any issues. What's missing though is the addition of tests for
|
|
|
|
xattr and libattr support at configuration/compile time. The code I've added
|
|
|
|
xattr and libattr support at configuration/compile time. The code I've added
|
|
|
|
is enclosed by '#ifdef USE_XATTR' statements so a test should be added that
|
|
|
|
is enclosed by '#ifdef DO_USER_XATTR_COPYING' statements so a test should be
|
|
|
|
sets this macro[5] if configure-time tests show that xattrs/libattr are working.
|
|
|
|
added that sets this macro[5] if configure-time tests show that xattrs/libattr
|
|
|
|
I don't know how to go about adding such tests though so I've simply included a
|
|
|
|
are working. I've added a preliminary test to CMakeLists.txt but I'm not sure
|
|
|
|
'#define USE_XATTR 1' statement to the top of the code. This should obviously
|
|
|
|
it's correct. Alternatively uncomment the '#define DO_USER_XATTR_COPYING 1'
|
|
|
|
be fixed before general release.
|
|
|
|
statement at the top of the code to force my code to be enabled. Ensuring that
|
|
|
|
|
|
|
|
the cmake test working correctly needs to be done before general release.
|
|
|
|
|
|
|
|
|
|
|
|
This code has been tested on select Ubuntu Linux releases (natty, precise,
|
|
|
|
This code has been tested on select Ubuntu Linux releases (natty, precise,
|
|
|
|
xenial, and jammy) using x86_64 Linux kernels 3.14.1, 4.18.3, and 5.15.0.
|
|
|
|
xenial, and jammy) using x86_64 Linux kernels 3.14.1, 4.18.3, and 5.15.0.
|
|
|
@ -70,8 +71,9 @@ Enjoy!
|
|
|
|
|
|
|
|
|
|
|
|
[4] The code that this patch is based on is licensed GPL v2 (or later).
|
|
|
|
[4] The code that this patch is based on is licensed GPL v2 (or later).
|
|
|
|
|
|
|
|
|
|
|
|
[5] One has to use '#define USE_XATTR 1'; specifying '#define USE_XATTR'
|
|
|
|
[5] One has to use '#define DO_USER_XATTR_COPYING 1'; specifying instead
|
|
|
|
doesn't enable the code (at least on my system).
|
|
|
|
'#define DO_USER_XATTR_COPYING' doesn't enable the code (at least on my
|
|
|
|
|
|
|
|
system).
|
|
|
|
|
|
|
|
|
|
|
|
[6] I'm not sure which non-Linux platforms (if any) libattr runs on.
|
|
|
|
[6] I'm not sure which non-Linux platforms (if any) libattr runs on.
|
|
|
|
|
|
|
|
|
|
|
|