From: Nathan Scott Date: Fri, 5 Oct 2001 08:12:26 +0000 (+0000) Subject: tests out getfattr/setfattr with XFS - different namespaces, different X-Git-Tag: v1.1.0~1201 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5724cb9519eb40709cb491a69e2e2d1dd5484d12;p=users%2Fhch%2Fxfstests-dev.git tests out getfattr/setfattr with XFS - different namespaces, different inode types, different directory descent options, backup/restore - the works. fairly comprehensive - based on Andreas' tests for ext2, but extended to do a few more things. --- diff --git a/062 b/062 new file mode 100755 index 000000000..d7dbe289a --- /dev/null +++ b/062 @@ -0,0 +1,215 @@ +#! /bin/sh +# XFS QA Test No. 062 +# $Id: 1.1 $ +# +# Exercises the getfattr/setfattr tools +# Derived from tests originally written by Andreas Gruenbacher for ext2 +# +#----------------------------------------------------------------------- +# Copyright (c) 2001 Silicon Graphics, Inc. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Further, this software is distributed without any warranty that it is +# free of the rightful claim of any third person regarding infringement +# or the like. Any license provided herein, whether implied or +# otherwise, applies only to this software file. Patent licenses, if +# any, provided herein do not apply to combinations of this program with +# other software, or any other product whatsoever. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write the Free Software Foundation, Inc., 59 +# Temple Place - Suite 330, Boston MA 02111-1307, USA. +# +# Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, +# Mountain View, CA 94043, or: +# +# http://www.sgi.com +# +# For further information regarding this notice, see: +# +# http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ +#----------------------------------------------------------------------- +# +# creator +owner=nathans@sgi.com + +seq=`basename $0` +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +status=1 # failure is the default! + +# get standard environment, filters and checks +. ./common.rc +. ./common.filter + +_cleanup() +{ + echo; echo "*** unmount" + umount $SCRATCH_MNT 2>/dev/null + rm -f $tmp.* +} +trap "_cleanup; exit \$status" 0 1 2 3 15 + +_create_test_bed() +{ + echo "*** create test bed" + touch $SCRATCH_MNT/reg + mkdir -p $SCRATCH_MNT/dir + ln -s $SCRATCH_MNT/dir $SCRATCH_MNT/lnk + mkdir $SCRATCH_MNT/dev + mknod $SCRATCH_MNT/dev/b b 0 0 + mknod $SCRATCH_MNT/dev/c c 0 0 + mknod $SCRATCH_MNT/dev/p p + # sanity check + find $SCRATCH_MNT | LC_COLLATE=POSIX sort +} + +_require_scratch +[ -x /usr/bin/getfattr ] || _notrun "getfattr is not installed" +[ -x /usr/bin/setfattr ] || _notrun "setfattr is not installed" +rm -f $tmp.backup1 $tmp.backup2 $seq.full + +# real QA test starts here +mkfs -t xfs -f $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs +mount -t xfs $SCRATCH_DEV $SCRATCH_MNT || _fail "mount failed" +_create_test_bed + +for nsp in user root; do + for inode in reg dir lnk dev/b dev/c dev/p; do + + echo; echo "=== TYPE $inode; NAMESPACE $nsp"; echo + + echo "*** set/get one initially empty attribute" + setfattr -l -N $nsp -n name $SCRATCH_MNT/$inode + getfattr -al -N $nsp -d $SCRATCH_MNT/$inode + + echo "*** overwrite empty, set several new attributes" + setfattr -l -N $nsp -n name -v 0xbabe $SCRATCH_MNT/$inode + setfattr -l -N $nsp -n name2 -v 0xdeadbeef $SCRATCH_MNT/$inode + setfattr -l -N $nsp -n name3 -v 0xdeface $SCRATCH_MNT/$inode + + echo "*** fetch several attribute names and values (hex)" + getfattr -al -N $nsp -d -e hex $SCRATCH_MNT/$inode + + echo "*** fetch several attribute names and values (base64)" + getfattr -al -N $nsp -d -e base64 $SCRATCH_MNT/$inode + + echo "*** shrink value of an existing attribute" + setfattr -l -N $nsp -n name2 -v 0xdeaf $SCRATCH_MNT/$inode + getfattr -al -N $nsp -d -e hex $SCRATCH_MNT/$inode + + echo "*** grow value of existing attribute" + setfattr -l -N $nsp -n name2 -v 0xdecade $SCRATCH_MNT/$inode + getfattr -al -N $nsp -d -e hex $SCRATCH_MNT/$inode + + echo "*** set an empty value for second attribute" + setfattr -l -N $nsp -n name2 $SCRATCH_MNT/$inode + getfattr -al -N $nsp -d -n name2 $SCRATCH_MNT/$inode + + echo "*** overwrite empty value" + setfattr -l -N $nsp -n name2 -v 0xcafe $SCRATCH_MNT/$inode + getfattr -al -N $nsp -d -e hex -n name2 $SCRATCH_MNT/$inode + + echo "*** remove attribute" + setfattr -l -N $nsp -x name2 $SCRATCH_MNT/$inode + getfattr -al -N $nsp -d -n name2 $SCRATCH_MNT/$inode + + echo "*** final list (strings, type=$inode, nsp=$nsp)" + getfattr -als -d $SCRATCH_MNT/$inode + done +done + + +# +# Test the directory descent code +# +echo; echo + +_extend_test_bed() +{ + echo "*** extend test bed" + # must set some descents' attributes to be useful + mkdir -p $SCRATCH_MNT/here/up/ascend + mkdir -p $SCRATCH_MNT/descend/down/here + find $SCRATCH_MNT/descend | xargs setfattr -N user -n x -v yz + find $SCRATCH_MNT/descend | xargs setfattr -N user -n 1 -v 23 + find $SCRATCH_MNT/here | xargs setfattr -N root -n a -v bc + find $SCRATCH_MNT/here | xargs setfattr -N root -n 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 + find $SCRATCH_MNT | LC_COLLATE=POSIX sort +} + +_extend_test_bed + +echo +echo "*** forward directory descent with us following symlinks" +getfattr -L -R -adls -e hex $SCRATCH_MNT + +echo +echo "*** reverse directory descent with us following symlinks" +getfattr -L -R -5 -adls -e hex $SCRATCH_MNT + +echo +echo "*** forward directory descent without following symlinks" +getfattr -P -R -adls -e hex $SCRATCH_MNT + +echo +echo "*** reverse directory descent without following symlinks" +getfattr -P -R -5 -adls -e hex $SCRATCH_MNT + + +# +# Test the backup/restore code +# +echo; echo + +_backup() +{ + getfattr -a -sdlR $SCRATCH_MNT >$1 + echo BACKUP $1 >>$seq.full + cat $1 >> $seq.full + [ ! -s $1 ] && echo "warning: $1 (backup file) is empty" +} + +echo "*** backup everything" +_backup $tmp.backup1 + +echo "*** clear out the scratch device" +rm -fr $SCRATCH_MNT/* +echo "AFTER REMOVE" >>$seq.full +getfattr -L -R -adls $SCRATCH_MNT >>$seq.full + +echo "*** reset test bed with no extended attributes" +_create_test_bed +_extend_test_bed + +echo "*** restore everything" +setfattr -lB $tmp.backup1 +_backup $tmp.backup2 + +echo "AFTER RESTORE" >>$seq.full +getfattr -L -R -adls $SCRATCH_MNT >>$seq.full + +echo "*** compare before and after backups" +diff $tmp.backup1 $tmp.backup2 +if [ $? -ne 0 ]; then + echo "urk, failed - creating $seq.backup1 and $seq.backup2" + cp $tmp.backup1 $seq.backup1 && cp $tmp.backup2 $seq.backup2 + status=1 + exit +fi + +# success, all done +status=0 +exit diff --git a/062.out b/062.out new file mode 100644 index 000000000..1b3a416a5 --- /dev/null +++ b/062.out @@ -0,0 +1,1116 @@ +QA output created by 062 +meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks +data = bsize=XXX blocks=XXX, imaxpct=PCT + = sunit=XXX swidth=XXX, unwritten=X +naming =VERN bsize=XXX +log =LDEV bsize=XXX blocks=XXX +realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX +*** create test bed +/mnt/scratch +/mnt/scratch/dev +/mnt/scratch/dev/b +/mnt/scratch/dev/c +/mnt/scratch/dev/p +/mnt/scratch/dir +/mnt/scratch/lnk +/mnt/scratch/reg + +=== TYPE reg; NAMESPACE user + +*** set/get one initially empty attribute +# file: /mnt/scratch/reg +# namespace: user +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/reg +# namespace: user +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/reg +# namespace: user +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/reg +# namespace: user +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/reg +# namespace: user +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/reg +# namespace: user +name2 + +*** overwrite empty value +# file: /mnt/scratch/reg +# namespace: user +name2=0xcafe + +*** remove attribute +/mnt/scratch/reg: name2: No such attribute +*** final list (strings, type=reg, nsp=user) +# file: /mnt/scratch/reg +# namespace: user +name="\272\276" +name3="\336\372\316" + + +=== TYPE dir; NAMESPACE user + +*** set/get one initially empty attribute +# file: /mnt/scratch/dir +# namespace: user +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dir +# namespace: user +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dir +# namespace: user +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dir +# namespace: user +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dir +# namespace: user +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dir +# namespace: user +name2 + +*** overwrite empty value +# file: /mnt/scratch/dir +# namespace: user +name2=0xcafe + +*** remove attribute +/mnt/scratch/dir: name2: No such attribute +*** final list (strings, type=dir, nsp=user) +# file: /mnt/scratch/dir +# namespace: user +name="\272\276" +name3="\336\372\316" + + +=== TYPE lnk; NAMESPACE user + +*** set/get one initially empty attribute +# file: /mnt/scratch/lnk +# namespace: user +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/lnk +# namespace: user +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/lnk +# namespace: user +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/lnk +# namespace: user +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/lnk +# namespace: user +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/lnk +# namespace: user +name2 + +*** overwrite empty value +# file: /mnt/scratch/lnk +# namespace: user +name2=0xcafe + +*** remove attribute +/mnt/scratch/lnk: name2: No such attribute +*** final list (strings, type=lnk, nsp=user) +# file: /mnt/scratch/lnk +# namespace: user +name="\272\276" +name3="\336\372\316" + + +=== TYPE dev/b; NAMESPACE user + +*** set/get one initially empty attribute +# file: /mnt/scratch/dev/b +# namespace: user +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dev/b +# namespace: user +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dev/b +# namespace: user +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dev/b +# namespace: user +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dev/b +# namespace: user +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dev/b +# namespace: user +name2 + +*** overwrite empty value +# file: /mnt/scratch/dev/b +# namespace: user +name2=0xcafe + +*** remove attribute +/mnt/scratch/dev/b: name2: No such attribute +*** final list (strings, type=dev/b, nsp=user) +# file: /mnt/scratch/dev/b +# namespace: user +name="\272\276" +name3="\336\372\316" + + +=== TYPE dev/c; NAMESPACE user + +*** set/get one initially empty attribute +# file: /mnt/scratch/dev/c +# namespace: user +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dev/c +# namespace: user +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dev/c +# namespace: user +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dev/c +# namespace: user +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dev/c +# namespace: user +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dev/c +# namespace: user +name2 + +*** overwrite empty value +# file: /mnt/scratch/dev/c +# namespace: user +name2=0xcafe + +*** remove attribute +/mnt/scratch/dev/c: name2: No such attribute +*** final list (strings, type=dev/c, nsp=user) +# file: /mnt/scratch/dev/c +# namespace: user +name="\272\276" +name3="\336\372\316" + + +=== TYPE dev/p; NAMESPACE user + +*** set/get one initially empty attribute +# file: /mnt/scratch/dev/p +# namespace: user +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dev/p +# namespace: user +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dev/p +# namespace: user +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dev/p +# namespace: user +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dev/p +# namespace: user +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dev/p +# namespace: user +name2 + +*** overwrite empty value +# file: /mnt/scratch/dev/p +# namespace: user +name2=0xcafe + +*** remove attribute +/mnt/scratch/dev/p: name2: No such attribute +*** final list (strings, type=dev/p, nsp=user) +# file: /mnt/scratch/dev/p +# namespace: user +name="\272\276" +name3="\336\372\316" + + +=== TYPE reg; NAMESPACE root + +*** set/get one initially empty attribute +# file: /mnt/scratch/reg +# namespace: root +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/reg +# namespace: root +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/reg +# namespace: root +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/reg +# namespace: root +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/reg +# namespace: root +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/reg +# namespace: root +name2 + +*** overwrite empty value +# file: /mnt/scratch/reg +# namespace: root +name2=0xcafe + +*** remove attribute +/mnt/scratch/reg: name2: No such attribute +*** final list (strings, type=reg, nsp=root) +# file: /mnt/scratch/reg +# namespace: user +name="\272\276" +name3="\336\372\316" + +# file: /mnt/scratch/reg +# namespace: root +name="\272\276" +name3="\336\372\316" + + +=== TYPE dir; NAMESPACE root + +*** set/get one initially empty attribute +# file: /mnt/scratch/dir +# namespace: root +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dir +# namespace: root +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dir +# namespace: root +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dir +# namespace: root +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dir +# namespace: root +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dir +# namespace: root +name2 + +*** overwrite empty value +# file: /mnt/scratch/dir +# namespace: root +name2=0xcafe + +*** remove attribute +/mnt/scratch/dir: name2: No such attribute +*** final list (strings, type=dir, nsp=root) +# file: /mnt/scratch/dir +# namespace: user +name="\272\276" +name3="\336\372\316" + +# file: /mnt/scratch/dir +# namespace: root +name="\272\276" +name3="\336\372\316" + + +=== TYPE lnk; NAMESPACE root + +*** set/get one initially empty attribute +# file: /mnt/scratch/lnk +# namespace: root +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/lnk +# namespace: root +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/lnk +# namespace: root +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/lnk +# namespace: root +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/lnk +# namespace: root +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/lnk +# namespace: root +name2 + +*** overwrite empty value +# file: /mnt/scratch/lnk +# namespace: root +name2=0xcafe + +*** remove attribute +/mnt/scratch/lnk: name2: No such attribute +*** final list (strings, type=lnk, nsp=root) +# file: /mnt/scratch/lnk +# namespace: user +name="\272\276" +name3="\336\372\316" + +# file: /mnt/scratch/lnk +# namespace: root +name="\272\276" +name3="\336\372\316" + + +=== TYPE dev/b; NAMESPACE root + +*** set/get one initially empty attribute +# file: /mnt/scratch/dev/b +# namespace: root +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dev/b +# namespace: root +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dev/b +# namespace: root +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dev/b +# namespace: root +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dev/b +# namespace: root +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dev/b +# namespace: root +name2 + +*** overwrite empty value +# file: /mnt/scratch/dev/b +# namespace: root +name2=0xcafe + +*** remove attribute +/mnt/scratch/dev/b: name2: No such attribute +*** final list (strings, type=dev/b, nsp=root) +# file: /mnt/scratch/dev/b +# namespace: user +name="\272\276" +name3="\336\372\316" + +# file: /mnt/scratch/dev/b +# namespace: root +name="\272\276" +name3="\336\372\316" + + +=== TYPE dev/c; NAMESPACE root + +*** set/get one initially empty attribute +# file: /mnt/scratch/dev/c +# namespace: root +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dev/c +# namespace: root +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dev/c +# namespace: root +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dev/c +# namespace: root +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dev/c +# namespace: root +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dev/c +# namespace: root +name2 + +*** overwrite empty value +# file: /mnt/scratch/dev/c +# namespace: root +name2=0xcafe + +*** remove attribute +/mnt/scratch/dev/c: name2: No such attribute +*** final list (strings, type=dev/c, nsp=root) +# file: /mnt/scratch/dev/c +# namespace: user +name="\272\276" +name3="\336\372\316" + +# file: /mnt/scratch/dev/c +# namespace: root +name="\272\276" +name3="\336\372\316" + + +=== TYPE dev/p; NAMESPACE root + +*** set/get one initially empty attribute +# file: /mnt/scratch/dev/p +# namespace: root +name + +*** overwrite empty, set several new attributes +*** fetch several attribute names and values (hex) +# file: /mnt/scratch/dev/p +# namespace: root +name=0xbabe +name2=0xdeadbeef +name3=0xdeface + +*** fetch several attribute names and values (base64) +# file: /mnt/scratch/dev/p +# namespace: root +name=0sur4= +name2=0s3q2+7w== +name3=0s3vrO + +*** shrink value of an existing attribute +# file: /mnt/scratch/dev/p +# namespace: root +name=0xbabe +name2=0xdeaf +name3=0xdeface + +*** grow value of existing attribute +# file: /mnt/scratch/dev/p +# namespace: root +name=0xbabe +name2=0xdecade +name3=0xdeface + +*** set an empty value for second attribute +# file: /mnt/scratch/dev/p +# namespace: root +name2 + +*** overwrite empty value +# file: /mnt/scratch/dev/p +# namespace: root +name2=0xcafe + +*** remove attribute +/mnt/scratch/dev/p: name2: No such attribute +*** final list (strings, type=dev/p, nsp=root) +# file: /mnt/scratch/dev/p +# namespace: user +name="\272\276" +name3="\336\372\316" + +# file: /mnt/scratch/dev/p +# namespace: root +name="\272\276" +name3="\336\372\316" + + + +*** extend test bed +/mnt/scratch +/mnt/scratch/descend +/mnt/scratch/descend/and +/mnt/scratch/descend/down +/mnt/scratch/descend/down/here +/mnt/scratch/dev +/mnt/scratch/dev/b +/mnt/scratch/dev/c +/mnt/scratch/dev/p +/mnt/scratch/dir +/mnt/scratch/here +/mnt/scratch/here/up +/mnt/scratch/here/up/ascend +/mnt/scratch/lnk +/mnt/scratch/reg + +*** forward directory descent with us following symlinks +# file: /mnt/scratch/reg +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/reg +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/lnk +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/lnk +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/here +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here/up +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here/up/ascend +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/descend +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/down +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/down/here +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/and/ascend +# namespace: root +9=0x3837 +a=0x6263 + + +*** reverse directory descent with us following symlinks +# file: /mnt/scratch/reg +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/reg +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/lnk +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/lnk +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/here/up/ascend +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here/up +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/descend/down/here +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/down +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/and/ascend +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/descend +# namespace: user +1=0x3233 +x=0x797a + + +*** forward directory descent without following symlinks +# file: /mnt/scratch/reg +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/reg +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/here +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here/up +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here/up/ascend +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/descend +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/down +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/down/here +# namespace: user +1=0x3233 +x=0x797a + + +*** reverse directory descent without following symlinks +# file: /mnt/scratch/reg +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/reg +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dir +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/b +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/c +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: user +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/dev/p +# namespace: root +name=0xbabe +name3=0xdeface + +# file: /mnt/scratch/here/up/ascend +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here/up +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/here +# namespace: root +9=0x3837 +a=0x6263 + +# file: /mnt/scratch/descend/down/here +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend/down +# namespace: user +1=0x3233 +x=0x797a + +# file: /mnt/scratch/descend +# namespace: user +1=0x3233 +x=0x797a + + + +*** backup everything +*** clear out the scratch device +*** reset test bed with no extended attributes +*** create test bed +/mnt/scratch +/mnt/scratch/dev +/mnt/scratch/dev/b +/mnt/scratch/dev/c +/mnt/scratch/dev/p +/mnt/scratch/dir +/mnt/scratch/lnk +/mnt/scratch/reg +*** extend test bed +/mnt/scratch +/mnt/scratch/descend +/mnt/scratch/descend/and +/mnt/scratch/descend/down +/mnt/scratch/descend/down/here +/mnt/scratch/dev +/mnt/scratch/dev/b +/mnt/scratch/dev/c +/mnt/scratch/dev/p +/mnt/scratch/dir +/mnt/scratch/here +/mnt/scratch/here/up +/mnt/scratch/here/up/ascend +/mnt/scratch/lnk +/mnt/scratch/reg +*** restore everything +*** compare before and after backups + +*** unmount diff --git a/group b/group index c1e16f0e0..2a5d97c34 100644 --- a/group +++ b/group @@ -20,8 +20,8 @@ metadata dxm@sgi.com # xfs_db db nathans@sgi.com dxm@sgi.com -# xfs_attr -attr dxm@sgi.com +# extended attributes +attr nathans@sgi.com dxm@sgi.com # xfs_logprint logprint dxm@sgi.com @@ -113,3 +113,4 @@ auto dxm@sgi.com 059 xfsdump 060 xfsdump 061 xfsdump auto +062 attr auto