Files
apfstests/tests/generic/097.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

73 lines
1.2 KiB
Plaintext

QA output created by 097
create file foo
*** Test out the trusted namespace ***
set EA <trusted:colour,marone>:
set EA <user:colour,beige>:
set EA <user:vomit,pizza>:
set EA <trusted:noise,whack>:
list trusted EAs: <trusted:colour,noise>:
# file: TEST_DIR/foo
trusted.colour="marone"
trusted.noise="whack"
list user EAs: <user:colour,vomit>:
# file: TEST_DIR/foo
user.colour="beige"
user.vomit="pizza"
get trusted EA colour: marone
# file: TEST_DIR/foo
trusted.colour="marone"
get trusted EA noise: whack
# file: TEST_DIR/foo
trusted.noise="whack"
get trusted EA vomit which is a user EA => find nothing
TEST_DIR/foo: trusted.vomit: No such attribute
unmount the FS and see if EAs are persistent
get trusted EA colour: marone
# file: TEST_DIR/foo
trusted.colour="marone"
get trusted EA noise: whack
# file: TEST_DIR/foo
trusted.noise="whack"
get user EA vomit: pizza
# file: TEST_DIR/foo
user.vomit="pizza"
remove the trusted colour EA
list trusted EAs: <trusted:noise>:
# file: TEST_DIR/foo
trusted.noise="whack"
list user EAs: <user:colour,vomit>:
# file: TEST_DIR/foo
user.colour="beige"
user.vomit="pizza"
remove the final trusted EA noise
list trusted EAs: none