On Fri, Oct 25, 2013 at 04:52:48PM -0400, Jeff Mahoney wrote: > This tests the sysfs publishing for btrfs allocation and device > membership info under a number of different layouts, similar to the > btrfs replace test. We test the allocation files only for existence and > that they contain numerical values. We test the device membership > by mapping the devices used to create the file system to sysfs paths > and matching them against the paths used for the device membership > symlinks. > > Since this is a new feature, it passes on kernels without > a /sys/fs/btrfs/<fsid> directory. > > Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx> > --- > common/config | 1 + > tests/btrfs/101 | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > tests/btrfs/101.out | 2 + > 3 files changed, 191 insertions(+) > create mode 100755 tests/btrfs/101 > create mode 100644 tests/btrfs/101.out > > diff --git a/common/config b/common/config > index 20c5b09..5f9e2e8 100644 > --- a/common/config > +++ b/common/config > @@ -208,6 +208,7 @@ case "$HOSTOS" in > export MKFS_UDF_PROG="`set_prog_path mkudffs`" > export MKFS_BTRFS_PROG="`set_btrfs_mkfs_prog_path_with_opts`" > export BTRFS_UTIL_PROG="`set_prog_path btrfs`" > + export UDEVADM_PROG="`set_prog_path udevadm`" > export BTRFS_SHOW_SUPER_PROG="`set_prog_path btrfs-show-super`" > export XFS_FSR_PROG="`set_prog_path xfs_fsr`" > export MKFS_NFS_PROG="false" > diff --git a/tests/btrfs/101 b/tests/btrfs/101 > new file mode 100755 > index 0000000..9a2834b > --- /dev/null > +++ b/tests/btrfs/101 > @@ -0,0 +1,188 @@ > +#! /bin/bash > +# FS QA Test No. btrfs/101 > +# > +# Test of the btrfs sysfs publishing > +# > +#----------------------------------------------------------------------- > +# Copyright (C) 2013 SUSE. All rights reserved. > +# > +# This program is free software; you can redistribute it and/or > +# modify it under the terms 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. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with this program; if not, write the Free Software Foundation, > +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA > +# > +#----------------------------------------------------------------------- > +# > + > +seq=`basename $0` > +seqres=$RESULT_DIR/$seq > +echo "QA output created by $seq" > + > +here=`pwd` > +tmp=/tmp/$$ > +status=1 > + > +# get standard environment, filters and checks > +. ./common/rc > +. ./common/filter > + > +# real QA test starts here > +_need_to_be_root > +_supported_fs btrfs > +_require_scratch > +_require_scratch_dev_pool > +_require_command $UDEVADM_PROG udevadm I don't think you need the extra udevadm here. Thanks, Josef _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs