Files
apfstests/tests/generic/533.out
T
Ronnie Sahlberg 2780486bdd generic/097: split user.* xattr tests to new test
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 <lsahlber@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2019-03-08 15:40:55 +08:00

109 lines
1.9 KiB
Plaintext

QA output created by 533
create file foo.533
should be no EAs for foo.533:
set EA <NOISE,woof>:
set EA <COLOUR,blue>:
set EA <SIZE,small>:
list the EAs for foo.533: NOISE, COLOUR, SIZE
# file: TEST_DIR/foo.533
user.COLOUR="blue"
user.NOISE="woof"
user.SIZE="small"
check the list again for foo.533
# file: TEST_DIR/foo.533
user.COLOUR="blue"
user.NOISE="woof"
user.SIZE="small"
unmount the FS and see if EAs are persistent
check the list again for foo.533 after umount/mount
# file: TEST_DIR/foo.533
user.COLOUR="blue"
user.NOISE="woof"
user.SIZE="small"
remove the COLOUR EA on foo.533
list EAs for foo.533: NOISE, SIZE
# file: TEST_DIR/foo.533
user.NOISE="woof"
user.SIZE="small"
get the value of the NOISE EA
# file: TEST_DIR/foo.533
user.NOISE="woof"
get the value of the COLOUR EA which was removed earlier
TEST_DIR/foo.533: user.COLOUR: No such attribute
get the value of the SIZE EA
# file: TEST_DIR/foo.533
user.SIZE="small"
list all the EAs again: NOISE, SIZE
# file: TEST_DIR/foo.533
user.NOISE="woof"
user.SIZE="small"
change the value of the SIZE EA from small to huge
get the SIZE EA which should now have value huge
# file: TEST_DIR/foo.533
user.SIZE="huge"
list EAs: NOISE, SIZE
# file: TEST_DIR/foo.533
user.NOISE="woof"
user.SIZE="huge"
remove the SIZE EA from foo.533
list EAs: NOISE (SIZE EA has been removed)
# file: TEST_DIR/foo.533
user.NOISE="woof"
try removing non-existent EA named woof
setfattr: TEST_DIR/foo.533: No such attribute
try removing already removed EA SIZE
setfattr: TEST_DIR/foo.533: No such attribute
list EAs: NOISE
# file: TEST_DIR/foo.533
user.NOISE="woof"
try removing already removed EA COLOUR
setfattr: TEST_DIR/foo.533: No such attribute
list EAs: NOISE
# file: TEST_DIR/foo.533
user.NOISE="woof"
remove remaining EA NOISE
list EAs: should be no EAs left now
unmount the FS and see if EAs are persistent
list EAs: should still be no EAs left