From: Josef Bacik <jbacik@fusionio.com>
To: Jeff Mahoney <jeffm@suse.com>
Cc: <xfs@oss.sgi.com>, Josef Bacik <jbacik@fusionio.com>,
<linux-btrfs@vger.kernel.org>
Subject: Re: [patch 2/3] [PATCH 2/3] xfstests: add test for sysfs publication of btrfs info
Date: Mon, 28 Oct 2013 11:53:21 -0400 [thread overview]
Message-ID: <20131028155321.GC4543@localhost.localdomain> (raw)
In-Reply-To: <20131025205559.690510798@suse.com>
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@suse.com>
> ---
> 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
next prev parent reply other threads:[~2013-10-28 15:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-25 20:52 [patch 0/3] xfstests: tests for btrfs publishing/export patchset Jeff Mahoney
2013-10-25 20:52 ` [patch 1/3] [PATCH 1/3] xfstests: add test for global metadata reservation publishing Jeff Mahoney
2013-10-28 15:59 ` Josef Bacik
2013-10-28 19:55 ` Jeff Mahoney
2013-10-25 20:52 ` [patch 2/3] [PATCH 2/3] xfstests: add test for sysfs publication of btrfs info Jeff Mahoney
2013-10-28 15:53 ` Josef Bacik [this message]
2013-10-25 20:52 ` [patch 3/3] [PATCH 3/3] xfstests: add tests for new feature ioctl and sysfs interfaces Jeff Mahoney
2013-10-28 16:02 ` Josef Bacik
2013-10-25 21:21 ` [patch 0/3] xfstests: tests for btrfs publishing/export patchset Jeff Mahoney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131028155321.GC4543@localhost.localdomain \
--to=jbacik@fusionio.com \
--cc=jeffm@suse.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).