From 4044dd3050b5f472cd6eb3f56b62531f57863119 Mon Sep 17 00:00:00 2001 From: fsgqa Date: Tue, 25 Feb 2003 09:13:13 +0000 Subject: [PATCH] Update QA tests to work with new attribute code (trusted namespace). --- 062 | 16 +-- 062.out | 304 ++++++++++++++++++++++++++-------------------------- common.dump | 4 +- 3 files changed, 162 insertions(+), 162 deletions(-) diff --git a/062 b/062 index 6501f99c..1b7e885d 100755 --- a/062 +++ b/062 @@ -96,7 +96,7 @@ mkfs_xfs $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs mount -t xfs $SCRATCH_DEV $SCRATCH_MNT || _fail "mount failed" _create_test_bed -for nsp in user xfsroot; do +for nsp in user trusted; do for inode in reg dir lnk dev/b dev/c dev/p; do echo; echo "=== TYPE $inode; NAMESPACE $nsp"; echo @@ -137,7 +137,7 @@ for nsp in user xfsroot; do getfattr -m $nsp -e hex -n $nsp.name2 $SCRATCH_MNT/$inode echo "*** final list (strings, type=$inode, nsp=$nsp)" - getfattr -m '^user|^xfsroot' -e hex $SCRATCH_MNT/$inode + getfattr -m '^user|^trusted' -e hex $SCRATCH_MNT/$inode done done @@ -155,8 +155,8 @@ _extend_test_bed() mkdir -p $SCRATCH_MNT/descend/down/here find $SCRATCH_MNT/descend | xargs setfattr -n user.x -v yz find $SCRATCH_MNT/descend | xargs setfattr -n user.1 -v 23 - find $SCRATCH_MNT/here | xargs setfattr -n xfsroot.a -v bc - find $SCRATCH_MNT/here | xargs setfattr -n xfsroot.9 -v 87 + find $SCRATCH_MNT/here | xargs setfattr -n trusted.a -v bc + find $SCRATCH_MNT/here | xargs setfattr -n trusted.9 -v 87 # whack a symlink in the middle, just to be difficult ln -s $SCRATCH_MNT/here/up $SCRATCH_MNT/descend/and # dump out our new starting point @@ -167,11 +167,11 @@ _extend_test_bed echo echo "*** directory descent with us following symlinks" -getfattr -h -L -R -m '^user|^xfsroot' -e hex $SCRATCH_MNT +getfattr -h -L -R -m '^user|^trusted' -e hex $SCRATCH_MNT echo echo "*** directory descent without following symlinks" -getfattr -h -P -R -m '^user|^xfsroot' -e hex $SCRATCH_MNT +getfattr -h -P -R -m '^user|^trusted' -e hex $SCRATCH_MNT # @@ -194,7 +194,7 @@ _backup $tmp.backup1 echo "*** clear out the scratch device" rm -fr $SCRATCH_MNT/* echo "AFTER REMOVE" >>$seq.full -getfattr -L -R -m '^user|^xfsroot' $SCRATCH_MNT >>$seq.full +getfattr -L -R -m '^user|^trusted' $SCRATCH_MNT >>$seq.full echo "*** reset test bed with no extended attributes" _create_test_bed @@ -205,7 +205,7 @@ setfattr -h --restore=$tmp.backup1 _backup $tmp.backup2 echo "AFTER RESTORE" >>$seq.full -getfattr -L -R -m '^user|^xfsroot' $SCRATCH_MNT >>$seq.full +getfattr -L -R -m '^user|^trusted' $SCRATCH_MNT >>$seq.full echo "*** compare before and after backups" diff $tmp.backup1 $tmp.backup2 diff --git a/062.out b/062.out index 1af2651b..eb6a5f6c 100644 --- a/062.out +++ b/062.out @@ -297,298 +297,298 @@ user.name=0xbabe user.name3=0xdeface -=== TYPE reg; NAMESPACE xfsroot +=== TYPE reg; NAMESPACE trusted *** set/get one initially empty attribute # file: SCRATCH_MNT/reg -xfsroot.name +trusted.name *** overwrite empty, set several new attributes *** fetch several attribute names and values (hex) # file: SCRATCH_MNT/reg -xfsroot.name=0xbabe -xfsroot.name2=0xdeadbeef -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeadbeef +trusted.name3=0xdeface *** fetch several attribute names and values (base64) # file: SCRATCH_MNT/reg -xfsroot.name=0sur4= -xfsroot.name2=0s3q2+7w== -xfsroot.name3=0s3vrO +trusted.name=0sur4= +trusted.name2=0s3q2+7w== +trusted.name3=0s3vrO *** shrink value of an existing attribute # file: SCRATCH_MNT/reg -xfsroot.name=0xbabe -xfsroot.name2=0xdeaf -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeaf +trusted.name3=0xdeface *** grow value of existing attribute # file: SCRATCH_MNT/reg -xfsroot.name=0xbabe -xfsroot.name2=0xdecade -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdecade +trusted.name3=0xdeface *** set an empty value for second attribute # file: SCRATCH_MNT/reg -xfsroot.name2 +trusted.name2 *** overwrite empty value # file: SCRATCH_MNT/reg -xfsroot.name2=0xcafe +trusted.name2=0xcafe *** remove attribute -SCRATCH_MNT/reg: xfsroot.name2: No such attribute -*** final list (strings, type=reg, nsp=xfsroot) +SCRATCH_MNT/reg: trusted.name2: No such attribute +*** final list (strings, type=reg, nsp=trusted) # file: SCRATCH_MNT/reg +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface -=== TYPE dir; NAMESPACE xfsroot +=== TYPE dir; NAMESPACE trusted *** set/get one initially empty attribute # file: SCRATCH_MNT/dir -xfsroot.name +trusted.name *** overwrite empty, set several new attributes *** fetch several attribute names and values (hex) # file: SCRATCH_MNT/dir -xfsroot.name=0xbabe -xfsroot.name2=0xdeadbeef -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeadbeef +trusted.name3=0xdeface *** fetch several attribute names and values (base64) # file: SCRATCH_MNT/dir -xfsroot.name=0sur4= -xfsroot.name2=0s3q2+7w== -xfsroot.name3=0s3vrO +trusted.name=0sur4= +trusted.name2=0s3q2+7w== +trusted.name3=0s3vrO *** shrink value of an existing attribute # file: SCRATCH_MNT/dir -xfsroot.name=0xbabe -xfsroot.name2=0xdeaf -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeaf +trusted.name3=0xdeface *** grow value of existing attribute # file: SCRATCH_MNT/dir -xfsroot.name=0xbabe -xfsroot.name2=0xdecade -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdecade +trusted.name3=0xdeface *** set an empty value for second attribute # file: SCRATCH_MNT/dir -xfsroot.name2 +trusted.name2 *** overwrite empty value # file: SCRATCH_MNT/dir -xfsroot.name2=0xcafe +trusted.name2=0xcafe *** remove attribute -SCRATCH_MNT/dir: xfsroot.name2: No such attribute -*** final list (strings, type=dir, nsp=xfsroot) +SCRATCH_MNT/dir: trusted.name2: No such attribute +*** final list (strings, type=dir, nsp=trusted) # file: SCRATCH_MNT/dir +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface -=== TYPE lnk; NAMESPACE xfsroot +=== TYPE lnk; NAMESPACE trusted *** set/get one initially empty attribute # file: SCRATCH_MNT/lnk -xfsroot.name +trusted.name *** overwrite empty, set several new attributes *** fetch several attribute names and values (hex) # file: SCRATCH_MNT/lnk -xfsroot.name=0xbabe -xfsroot.name2=0xdeadbeef -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeadbeef +trusted.name3=0xdeface *** fetch several attribute names and values (base64) # file: SCRATCH_MNT/lnk -xfsroot.name=0sur4= -xfsroot.name2=0s3q2+7w== -xfsroot.name3=0s3vrO +trusted.name=0sur4= +trusted.name2=0s3q2+7w== +trusted.name3=0s3vrO *** shrink value of an existing attribute # file: SCRATCH_MNT/lnk -xfsroot.name=0xbabe -xfsroot.name2=0xdeaf -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeaf +trusted.name3=0xdeface *** grow value of existing attribute # file: SCRATCH_MNT/lnk -xfsroot.name=0xbabe -xfsroot.name2=0xdecade -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdecade +trusted.name3=0xdeface *** set an empty value for second attribute # file: SCRATCH_MNT/lnk -xfsroot.name2 +trusted.name2 *** overwrite empty value # file: SCRATCH_MNT/lnk -xfsroot.name2=0xcafe +trusted.name2=0xcafe *** remove attribute -SCRATCH_MNT/lnk: xfsroot.name2: No such attribute -*** final list (strings, type=lnk, nsp=xfsroot) +SCRATCH_MNT/lnk: trusted.name2: No such attribute +*** final list (strings, type=lnk, nsp=trusted) # file: SCRATCH_MNT/lnk +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface -=== TYPE dev/b; NAMESPACE xfsroot +=== TYPE dev/b; NAMESPACE trusted *** set/get one initially empty attribute # file: SCRATCH_MNT/dev/b -xfsroot.name +trusted.name *** overwrite empty, set several new attributes *** fetch several attribute names and values (hex) # file: SCRATCH_MNT/dev/b -xfsroot.name=0xbabe -xfsroot.name2=0xdeadbeef -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeadbeef +trusted.name3=0xdeface *** fetch several attribute names and values (base64) # file: SCRATCH_MNT/dev/b -xfsroot.name=0sur4= -xfsroot.name2=0s3q2+7w== -xfsroot.name3=0s3vrO +trusted.name=0sur4= +trusted.name2=0s3q2+7w== +trusted.name3=0s3vrO *** shrink value of an existing attribute # file: SCRATCH_MNT/dev/b -xfsroot.name=0xbabe -xfsroot.name2=0xdeaf -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeaf +trusted.name3=0xdeface *** grow value of existing attribute # file: SCRATCH_MNT/dev/b -xfsroot.name=0xbabe -xfsroot.name2=0xdecade -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdecade +trusted.name3=0xdeface *** set an empty value for second attribute # file: SCRATCH_MNT/dev/b -xfsroot.name2 +trusted.name2 *** overwrite empty value # file: SCRATCH_MNT/dev/b -xfsroot.name2=0xcafe +trusted.name2=0xcafe *** remove attribute -SCRATCH_MNT/dev/b: xfsroot.name2: No such attribute -*** final list (strings, type=dev/b, nsp=xfsroot) +SCRATCH_MNT/dev/b: trusted.name2: No such attribute +*** final list (strings, type=dev/b, nsp=trusted) # file: SCRATCH_MNT/dev/b +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface -=== TYPE dev/c; NAMESPACE xfsroot +=== TYPE dev/c; NAMESPACE trusted *** set/get one initially empty attribute # file: SCRATCH_MNT/dev/c -xfsroot.name +trusted.name *** overwrite empty, set several new attributes *** fetch several attribute names and values (hex) # file: SCRATCH_MNT/dev/c -xfsroot.name=0xbabe -xfsroot.name2=0xdeadbeef -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeadbeef +trusted.name3=0xdeface *** fetch several attribute names and values (base64) # file: SCRATCH_MNT/dev/c -xfsroot.name=0sur4= -xfsroot.name2=0s3q2+7w== -xfsroot.name3=0s3vrO +trusted.name=0sur4= +trusted.name2=0s3q2+7w== +trusted.name3=0s3vrO *** shrink value of an existing attribute # file: SCRATCH_MNT/dev/c -xfsroot.name=0xbabe -xfsroot.name2=0xdeaf -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeaf +trusted.name3=0xdeface *** grow value of existing attribute # file: SCRATCH_MNT/dev/c -xfsroot.name=0xbabe -xfsroot.name2=0xdecade -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdecade +trusted.name3=0xdeface *** set an empty value for second attribute # file: SCRATCH_MNT/dev/c -xfsroot.name2 +trusted.name2 *** overwrite empty value # file: SCRATCH_MNT/dev/c -xfsroot.name2=0xcafe +trusted.name2=0xcafe *** remove attribute -SCRATCH_MNT/dev/c: xfsroot.name2: No such attribute -*** final list (strings, type=dev/c, nsp=xfsroot) +SCRATCH_MNT/dev/c: trusted.name2: No such attribute +*** final list (strings, type=dev/c, nsp=trusted) # file: SCRATCH_MNT/dev/c +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface -=== TYPE dev/p; NAMESPACE xfsroot +=== TYPE dev/p; NAMESPACE trusted *** set/get one initially empty attribute # file: SCRATCH_MNT/dev/p -xfsroot.name +trusted.name *** overwrite empty, set several new attributes *** fetch several attribute names and values (hex) # file: SCRATCH_MNT/dev/p -xfsroot.name=0xbabe -xfsroot.name2=0xdeadbeef -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeadbeef +trusted.name3=0xdeface *** fetch several attribute names and values (base64) # file: SCRATCH_MNT/dev/p -xfsroot.name=0sur4= -xfsroot.name2=0s3q2+7w== -xfsroot.name3=0s3vrO +trusted.name=0sur4= +trusted.name2=0s3q2+7w== +trusted.name3=0s3vrO *** shrink value of an existing attribute # file: SCRATCH_MNT/dev/p -xfsroot.name=0xbabe -xfsroot.name2=0xdeaf -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdeaf +trusted.name3=0xdeface *** grow value of existing attribute # file: SCRATCH_MNT/dev/p -xfsroot.name=0xbabe -xfsroot.name2=0xdecade -xfsroot.name3=0xdeface +trusted.name=0xbabe +trusted.name2=0xdecade +trusted.name3=0xdeface *** set an empty value for second attribute # file: SCRATCH_MNT/dev/p -xfsroot.name2 +trusted.name2 *** overwrite empty value # file: SCRATCH_MNT/dev/p -xfsroot.name2=0xcafe +trusted.name2=0xcafe *** remove attribute -SCRATCH_MNT/dev/p: xfsroot.name2: No such attribute -*** final list (strings, type=dev/p, nsp=xfsroot) +SCRATCH_MNT/dev/p: trusted.name2: No such attribute +*** final list (strings, type=dev/p, nsp=trusted) # file: SCRATCH_MNT/dev/p +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface @@ -611,46 +611,46 @@ SCRATCH_MNT/reg *** directory descent with us following symlinks # file: SCRATCH_MNT/reg +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dir +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dev/b +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dev/c +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dev/p +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/here -xfsroot.9=0x3837 -xfsroot.a=0x6263 +trusted.9=0x3837 +trusted.a=0x6263 # file: SCRATCH_MNT/here/up -xfsroot.9=0x3837 -xfsroot.a=0x6263 +trusted.9=0x3837 +trusted.a=0x6263 # file: SCRATCH_MNT/here/up/ascend -xfsroot.9=0x3837 -xfsroot.a=0x6263 +trusted.9=0x3837 +trusted.a=0x6263 # file: SCRATCH_MNT/descend user.1=0x3233 @@ -667,46 +667,46 @@ user.x=0x797a *** directory descent without following symlinks # file: SCRATCH_MNT/reg +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dir +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dev/b +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dev/c +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/dev/p +trusted.name=0xbabe +trusted.name3=0xdeface user.name=0xbabe user.name3=0xdeface -xfsroot.name=0xbabe -xfsroot.name3=0xdeface # file: SCRATCH_MNT/here -xfsroot.9=0x3837 -xfsroot.a=0x6263 +trusted.9=0x3837 +trusted.a=0x6263 # file: SCRATCH_MNT/here/up -xfsroot.9=0x3837 -xfsroot.a=0x6263 +trusted.9=0x3837 +trusted.a=0x6263 # file: SCRATCH_MNT/here/up/ascend -xfsroot.9=0x3837 -xfsroot.a=0x6263 +trusted.9=0x3837 +trusted.a=0x6263 # file: SCRATCH_MNT/descend user.1=0x3233 diff --git a/common.dump b/common.dump index 358daa80..59d0afbd 100644 --- a/common.dump +++ b/common.dump @@ -1170,10 +1170,10 @@ _get_eas_on_path() done echo "Root names" - getfattr --absolute-names -Rh -m xfsroot $_path |\ + getfattr --absolute-names -Rh -m trusted $_path |\ perl -wn -e ' if (m/^# file: (\S+)/) { $file = $1 } - elsif (m/^xfsroot\.(\w+)/) { print $file, " ",$1,"\n" }' |\ + elsif (m/^trusted\.(\w+)/) { print $file, " ",$1,"\n" }' |\ sort |\ while read file ea_name; do attr -R -g $ea_name $file -- 2.30.2