Add new xattr test 532
PATCH 1/1 Add new xattr test 532
Split out most of the user.* tests from 097 and move them to a new test that only tests user.* xattrs.
This makes it possible to use this test on filesystems that can only provide user.* xattrs such as CIFS.
Signed-off-by Ronnie Sahlberg <[email protected]>
--- tests/generic/097 | 84 ------------------------- tests/generic/097.out | 105 ------------------------------- tests/generic/532 | 143 ++++++++++++++++++++++++++++++++++++++++++ tests/generic/532.out | 108 +++++++++++++++++++++++++++++++ tests/generic/group | 1 + 5 files changed, 252 insertions(+), 189 deletions(-) create mode 100755 tests/generic/532 create mode 100644 tests/generic/532.out
tests/generic/097 +0 -84
@@ -54,90 +54,6 @@ echo -e "\ncreate file foo" rm -f $file touch $file -echo -e "\nshould be no EAs for foo:" -getfattr -d $file - -echo -e "\nset EA <noise,woof>:" -setfattr -n user.noise -v woof $file - -echo -e "\nset EA <colour,blue>:" -setfattr -n user.colour -v blue $file - -echo -e "\nset EA <size,small>:" -setfattr -n user.size -v small $file - -echo -e "\nlist the EAs for foo: noise, colour, size" -getfattr -d $file - -echo -e "\ncheck the list again for foo" -getfattr -d $file - -echo -e "\nunmount the FS and see if EAs are persistent" -_test_cycle_mount - -echo -e "\ncheck the list again for foo after umount/mount" -getfattr -d $file - -echo -e "\nremove the colour EA on foo" -setfattr -x user.colour $file - -echo -e "\nlist EAs for foo: noise, size" -getfattr -d $file - -echo -e "\nget the value of the noise EA" -getfattr -n user.noise $file - -echo -e "\nget the value of the colour EA which was removed earlier" -getfattr -n user.colour $file - -echo -e "\nget the value of the size EA" -getfattr -n user.size $file - -echo -e "\nlist all the EAs again: noise, size" -getfattr -d $file - -echo -e "\nchange the value of the size EA from small to huge" -setfattr -n user.size -v huge $file - -echo -e "\nget the size EA which should now have value huge" -getfattr -n user.size $file - -echo -e "\nlist EAs: noise, size" -getfattr -d $file - -echo -e "\nremove the size EA from foo" -setfattr -x user.size $file - -echo -e "\nlist EAs: noise (size EA has been removed)" -getfattr -d $file - -echo -e "\ntry removing non-existent EA named woof" -setfattr -x user.woof $file - -echo -e "\ntry removing already removed EA size" -setfattr -x user.size $file - -echo -e "\nlist EAs: noise" -getfattr -d $file - -echo -e "\ntry removing already removed EA colour" -setfattr -x user.colour $file - -echo -e "\nlist EAs: noise" -getfattr -d $file - -echo -e "\nremove remaining EA noise" -setfattr -x user.noise $file - -echo -e "\nlist EAs: should be no EAs left now" -getfattr -d $file - -echo -e "\nunmount the FS and see if EAs are persistent" -_test_cycle_mount - -echo -e "\nlist EAs: should still be no EAs left" -getfattr -d $file - echo -e "\n*** Test out the trusted namespace ***" echo -e "\nset EA <trusted:colour,marone>:"
tests/generic/097.out +0 -105
111 lines not on this page · raw message
tests/generic/532 new file +143 -0
143 lines not on this page · raw message
tests/generic/532.out new file +108 -0
108 lines not on this page · raw message
tests/generic/group +1 -0
@@ -534,3 +534,4 @@ 529 auto quick attr 530 auto quick unlink 531 auto quick unlink +532 auto quick attr
Signature · 1 line
2.21.0.rc1