Skip to contentSkip to conversation

xfstests: btrfs/023: test if raids are actually created

PATCH Superseded Anand Jain 2 participants 6 messages Nov 18, 2013 – Nov 19, 2013 Btrfs file system

lore
Share & tools
lore

Anand Jain

author
#0 lore raw

PATCH 1/1 xfstests: btrfs/023: test if raids are actually created

A test case to verify if the given raid option for the metadata and data are actually created.

---
 tests/btrfs/023     |   91 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/023.out |    2 +
 tests/btrfs/group   |    1 +
 3 files changed, 94 insertions(+), 0 deletions(-)
 create mode 100755 tests/btrfs/023
 create mode 100644 tests/btrfs/023.out
tests/btrfs/023 new file +91 -0
new file mode 100755
index 0000000..77934fd
@@ -0,0 +1,91 @@
+#! /bin/bash
+# FS QA Test No. 022
+#
+# Test to verify if the group profile is created
+#
+# The test aims to create the raid and verify that its created
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2013 Oracle.  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	# failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+    cd /
+    rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# real QA test starts here
+_supported_fs btrfs
+_supported_os Linux
+_require_scratch_dev_pool 4
+rm -f $seqres.full
+
+create_group_profile()
+{
+	local mkfs_options="-d$1 -m$1"
+
+	# _scratch_mkfs adds the 1st device again (which is $SCRATCH_DEV)
+	_scratch_pool_mkfs $mkfs_options >> $seqres.full 2>&1 || _fail "mkfs failed"
+}
+
+check_group_profile()
+{
+	local test_raid="$1"
+
+	_scratch_mount
+	$BTRFS_UTIL_PROG filesystem df $SCRATCH_MNT > $tmp.tmp 2>&1
+	_scratch_unmount
+	cat $tmp.tmp >> $seqres.full
+	grep Data $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Data"
+	grep Metadata $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Metadata"
+}
+
+create_group_profile "raid0"
+check_group_profile "RAID0"
+
+create_group_profile "raid1"
+check_group_profile "RAID1"
+
+create_group_profile "raid10"
+check_group_profile "RAID10"
+
+create_group_profile "raid5"
+check_group_profile "RAID5"
+
+create_group_profile "raid6"
+check_group_profile "RAID6"
+
+# success, all done
+echo "Silence is golden"
+status=0
+exit
tests/btrfs/023.out new file +2 -0
new file mode 100644
index 0000000..5c4197b
@@ -0,0 +1,2 @@
+QA output created by 023
+Silence is golden
tests/btrfs/group +1 -0
index 410f8ed..35db67b 100644
@@ -24,3 +24,4 @@
 019 auto quick
 020 auto quick
 021 auto quick
+023 auto
Signature · 1 line
1.7.1
#1 lore raw
Quoted 63 lines · Anand Jain

A test case to verify if the given raid option for the metadata and data are actually created.

---
 tests/btrfs/023     |   91 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/023.out |    2 +
 tests/btrfs/group   |    1 +
 3 files changed, 94 insertions(+), 0 deletions(-)
 create mode 100755 tests/btrfs/023
 create mode 100644 tests/btrfs/023.out
tests/btrfs/023 new file +45 -0
new file mode 100755
index 0000000..77934fd
@@ -0,0 +1,91 @@
+#! /bin/bash
+# FS QA Test No. 022
+#
+# Test to verify if the group profile is created
+#
+# The test aims to create the raid and verify that its created
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2013 Oracle.  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	# failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+    cd /
+    rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# real QA test starts here

tests/btrfs/023 line 55

Quoted 10 lines
tests/btrfs/023 new file +10 -0
+_supported_fs btrfs
+_supported_os Linux
+_require_scratch_dev_pool 4
+rm -f $seqres.full
+
+create_group_profile()
+{
+	local mkfs_options="-d$1 -m$1"
+
+	# _scratch_mkfs adds the 1st device again (which is $SCRATCH_DEV)

The comment doesn't make anything clearer to me - you say what _scratch_mkfs does but then you call _scratch_pool_mkfs. I could look, of course, but the purpose of a comment is to make things clearer, not to make the reader wonder why you wrote the comment. ;)

Quoted 5 lines
tests/btrfs/023 new file +5 -0
+	_scratch_pool_mkfs $mkfs_options >> $seqres.full 2>&1 || _fail "mkfs failed"
+}
+
+check_group_profile()
+{

tests/btrfs/023 line 70

Quoted 10 lines
tests/btrfs/023 new file +10 -0
+	local test_raid="$1"
+
+	_scratch_mount
+	$BTRFS_UTIL_PROG filesystem df $SCRATCH_MNT > $tmp.tmp 2>&1
+	_scratch_unmount
+	cat $tmp.tmp >> $seqres.full
+	grep Data $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Data"
+	grep Metadata $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Metadata"

Should these be more specific? I.e. do you want to do:

grep "^Data, " | grep -q $test_raid

because (at least in my version of btrfs-progs) there are two Data lines in the df output (and two Metadata lines as well).

Which reminds me, has df output changed semi-recently, and do you need to handle that? (Maybe that's what the non-specific grep accomplishes?)

Also, I'm curious (maybe I just haven't been keeping up) - was there a bug where mkfs succeeded but didn't make the requested raid level?

thanks,
-Eric

Quoted 39 lines
tests/btrfs/023 new file +21 -0
+}
+
+create_group_profile "raid0"
+check_group_profile "RAID0"
+
+create_group_profile "raid1"
+check_group_profile "RAID1"
+
+create_group_profile "raid10"
+check_group_profile "RAID10"
+
+create_group_profile "raid5"
+check_group_profile "RAID5"
+
+create_group_profile "raid6"
+check_group_profile "RAID6"
+
+# success, all done
+echo "Silence is golden"
+status=0
+exit
tests/btrfs/023.out new file +2 -0
new file mode 100644
index 0000000..5c4197b
@@ -0,0 +1,2 @@
+QA output created by 023
+Silence is golden
tests/btrfs/group +1 -0
index 410f8ed..35db67b 100644
@@ -24,3 +24,4 @@
 019 auto quick
 020 auto quick
 021 auto quick
+023 auto
author
#2 lore raw
Quoted 71 lines · Eric Sandeen
Quoted 70 lines · Anand Jain

A test case to verify if the given raid option for the metadata and data are actually created.

---
  tests/btrfs/023     |   91 +++++++++++++++++++++++++++++++++++++++++++++++++++
  tests/btrfs/023.out |    2 +
  tests/btrfs/group   |    1 +
  3 files changed, 94 insertions(+), 0 deletions(-)

create mode 100755 tests/btrfs/023
create mode 100644 tests/btrfs/023.out

tests/btrfs/023 new file +52 -0
new file mode 100755
index 0000000..77934fd
@@ -0,0 +1,91 @@
+#! /bin/bash
+# FS QA Test No. 022
+#
+# Test to verify if the group profile is created
+#
+# The test aims to create the raid and verify that its created
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2013 Oracle.  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	# failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+    cd /
+    rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# real QA test starts here
+_supported_fs btrfs
+_supported_os Linux
+_require_scratch_dev_pool 4
+rm -f $seqres.full
+
+create_group_profile()
+{
Quoted 8 lines

tests/btrfs/023 line 55

Quoted 3 lines
tests/btrfs/023 new file +3 -0
+	local mkfs_options="-d$1 -m$1"
+
+	# _scratch_mkfs adds the 1st device again (which is $SCRATCH_DEV)

The comment doesn't make anything clearer to me - you say what _scratch_mkfs does but then you call _scratch_pool_mkfs. I could look, of course, but the purpose of a comment is to make things clearer, not to make the reader wonder why you wrote the comment. ;)

Its cut and paste error I will remove the comment.

Quoted 18 lines
Quoted 5 lines
tests/btrfs/023 new file +5 -0
+	_scratch_pool_mkfs $mkfs_options >> $seqres.full 2>&1 || _fail "mkfs failed"
+}
+
+check_group_profile()
+{

tests/btrfs/023 line 70

Quoted 10 lines
tests/btrfs/023 new file +10 -0
+	local test_raid="$1"
+
+	_scratch_mount
+	$BTRFS_UTIL_PROG filesystem df $SCRATCH_MNT > $tmp.tmp 2>&1
+	_scratch_unmount
+	cat $tmp.tmp >> $seqres.full
+	grep Data $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Data"
+	grep Metadata $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Metadata"

Should these be more specific? I.e. do you want to do:

Quoted 7 lines

grep "^Data, " | grep -q $test_raid

because (at least in my version of btrfs-progs) there are two Data lines in the df output (and two Metadata lines as well).

Which reminds me, has df output changed semi-recently, and do you need to handle that? (Maybe that's what the non-specific grep accomplishes?)

Its generic enough to ignore minor format changes and check if there is Data/Metadata and the given-raid. I can't think of anything which break this.

Quoted 53 lines

Also, I'm curious (maybe I just haven't been keeping up) - was there a bug where mkfs succeeded but didn't make the requested raid level?

thanks,
-Eric

Quoted 35 lines
tests/btrfs/023 new file +21 -0
+}
+
+create_group_profile "raid0"
+check_group_profile "RAID0"
+
+create_group_profile "raid1"
+check_group_profile "RAID1"
+
+create_group_profile "raid10"
+check_group_profile "RAID10"
+
+create_group_profile "raid5"
+check_group_profile "RAID5"
+
+create_group_profile "raid6"
+check_group_profile "RAID6"
+
+# success, all done
+echo "Silence is golden"
+status=0
+exit
tests/btrfs/023.out new file +2 -0
new file mode 100644
index 0000000..5c4197b
@@ -0,0 +1,2 @@
+QA output created by 023
+Silence is golden
tests/btrfs/group +0 -0
index 410f8ed..35db67b 100644

tests/btrfs/group line 27

Quoted 4 lines
tests/btrfs/group +1 -0
@@ -24,3 +24,4 @@
  019 auto quick
  020 auto quick
  021 auto quick
+023 auto

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#3 lore raw

PATCH v2 1/1 xfstests: btrfs/023: test if raids are actually created

In reply to Anand Jain

A test case to verify if the given raid option for the metadata and data are actually created.

---
v2: a copied comment removed as Eric pointed out

 tests/btrfs/023     |   90 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/023.out |    2 +
 tests/btrfs/group   |    1 +
 3 files changed, 93 insertions(+), 0 deletions(-)
 create mode 100755 tests/btrfs/023
 create mode 100644 tests/btrfs/023.out
tests/btrfs/023 new file +90 -0
new file mode 100755
index 0000000..65ca83f
@@ -0,0 +1,90 @@
+#! /bin/bash
+# FS QA Test No. 022
+#
+# Test to verify if the group profile is created
+#
+# The test aims to create the raid and verify that its created
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2013 Oracle.  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	# failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+    cd /
+    rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# real QA test starts here
+_supported_fs btrfs
+_supported_os Linux
+_require_scratch_dev_pool 4
+rm -f $seqres.full
+
+create_group_profile()
+{
+	local mkfs_options="-d$1 -m$1"
+
+	_scratch_pool_mkfs $mkfs_options >> $seqres.full 2>&1 || _fail "mkfs failed"
+}
+
+check_group_profile()
+{
+	local test_raid="$1"
+
+	_scratch_mount
+	$BTRFS_UTIL_PROG filesystem df $SCRATCH_MNT > $tmp.tmp 2>&1
+	_scratch_unmount
+	cat $tmp.tmp >> $seqres.full
+	grep Data $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Data"
+	grep Metadata $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Metadata"
+}
+
+create_group_profile "raid0"
+check_group_profile "RAID0"
+
+create_group_profile "raid1"
+check_group_profile "RAID1"
+
+create_group_profile "raid10"
+check_group_profile "RAID10"
+
+create_group_profile "raid5"
+check_group_profile "RAID5"
+
+create_group_profile "raid6"
+check_group_profile "RAID6"
+
+# success, all done
+echo "Silence is golden"
+status=0
+exit
tests/btrfs/023.out new file +2 -0
new file mode 100644
index 0000000..5c4197b
@@ -0,0 +1,2 @@
+QA output created by 023
+Silence is golden
tests/btrfs/group +1 -0
index 410f8ed..35db67b 100644
@@ -24,3 +24,4 @@
 019 auto quick
 020 auto quick
 021 auto quick
+023 auto
Signature · 1 line
1.7.1
Reviewed-by on v2 1/1
#4 lore raw
Quoted 4 lines · Anand Jain

A test case to verify if the given raid option for the metadata and data are actually created.

Quoted 124 lines

---
v2: a copied comment removed as Eric pointed out

 tests/btrfs/023     |   90 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/023.out |    2 +
 tests/btrfs/group   |    1 +
 3 files changed, 93 insertions(+), 0 deletions(-)
 create mode 100755 tests/btrfs/023
 create mode 100644 tests/btrfs/023.out
tests/btrfs/023 new file +90 -0
new file mode 100755
index 0000000..65ca83f
@@ -0,0 +1,90 @@
+#! /bin/bash
+# FS QA Test No. 022
+#
+# Test to verify if the group profile is created
+#
+# The test aims to create the raid and verify that its created
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2013 Oracle.  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	# failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+    cd /
+    rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# real QA test starts here
+_supported_fs btrfs
+_supported_os Linux
+_require_scratch_dev_pool 4
+rm -f $seqres.full
+
+create_group_profile()
+{
+	local mkfs_options="-d$1 -m$1"
+
+	_scratch_pool_mkfs $mkfs_options >> $seqres.full 2>&1 || _fail "mkfs failed"
+}
+
+check_group_profile()
+{
+	local test_raid="$1"
+
+	_scratch_mount
+	$BTRFS_UTIL_PROG filesystem df $SCRATCH_MNT > $tmp.tmp 2>&1
+	_scratch_unmount
+	cat $tmp.tmp >> $seqres.full
+	grep Data $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Data"
+	grep Metadata $tmp.tmp | grep -q $test_raid
+	[ $? -eq 0 ] || _fail "$test_raid not found for Metadata"
+}
+
+create_group_profile "raid0"
+check_group_profile "RAID0"
+
+create_group_profile "raid1"
+check_group_profile "RAID1"
+
+create_group_profile "raid10"
+check_group_profile "RAID10"
+
+create_group_profile "raid5"
+check_group_profile "RAID5"
+
+create_group_profile "raid6"
+check_group_profile "RAID6"
+
+# success, all done
+echo "Silence is golden"
+status=0
+exit
tests/btrfs/023.out new file +2 -0
new file mode 100644
index 0000000..5c4197b
@@ -0,0 +1,2 @@
+QA output created by 023
+Silence is golden
tests/btrfs/group +1 -0
index 410f8ed..35db67b 100644
@@ -24,3 +24,4 @@
 019 auto quick
 020 auto quick
 021 auto quick
+023 auto
author
#5 lore raw

PATCH 1/1 xfstests: btrfs/023: test if raids are actually created

In reply to Anand Jain

A test case to verify if the given raid option for the metadata and data are actually created.

---
v3: need to differentiate between RAID10 and RAID1 in the output,
fixed the grep
v2: a copied comment removed as Eric pointed out

 tests/btrfs/023     |   90 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/btrfs/023.out |    2 +
 tests/btrfs/group   |    1 +
 3 files changed, 93 insertions(+), 0 deletions(-)
 create mode 100755 tests/btrfs/023
 create mode 100644 tests/btrfs/023.out
tests/btrfs/023 new file +90 -0
new file mode 100755
index 0000000..da1f818
@@ -0,0 +1,90 @@
+#! /bin/bash
+# FS QA Test No. 023
+#
+# Test to verify if the group profile is created
+#
+# The test aims to create the raid and verify that its created
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2013 Oracle.  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	# failure is the default!
+trap "_cleanup; exit \$status" 0 1 2 3 15
+
+_cleanup()
+{
+    cd /
+    rm -f $tmp.*
+}
+
+# get standard environment, filters and checks
+. ./common/rc
+. ./common/filter
+
+# real QA test starts here
+_supported_fs btrfs
+_supported_os Linux
+_require_scratch_dev_pool 4
+rm -f $seqres.full
+
+create_group_profile()
+{
+	local mkfs_options="-d$1 -m$1"
+
+	_scratch_pool_mkfs $mkfs_options >> $seqres.full 2>&1 || _fail "mkfs failed"
+}
+
+check_group_profile()
+{
+	local test_raid="$1"
+
+	_scratch_mount
+	$BTRFS_UTIL_PROG filesystem df $SCRATCH_MNT > $tmp.tmp 2>&1
+	_scratch_unmount
+	cat $tmp.tmp >> $seqres.full
+	grep Data $tmp.tmp | grep -q "${test_raid}:"
+	[ $? -eq 0 ] || _fail "$test_raid not found for Data"
+	grep Metadata $tmp.tmp | grep -q "${test_raid}:"
+	[ $? -eq 0 ] || _fail "$test_raid not found for Metadata"
+}
+
+create_group_profile "raid0"
+check_group_profile "RAID0"
+
+create_group_profile "raid1"
+check_group_profile "RAID1"
+
+create_group_profile "raid10"
+check_group_profile "RAID10"
+
+create_group_profile "raid5"
+check_group_profile "RAID5"
+
+create_group_profile "raid6"
+check_group_profile "RAID6"
+
+# success, all done
+echo "Silence is golden"
+status=0
+exit
tests/btrfs/023.out new file +2 -0
new file mode 100644
index 0000000..5c4197b
@@ -0,0 +1,2 @@
+QA output created by 023
+Silence is golden
tests/btrfs/group +1 -0
index 410f8ed..35db67b 100644
@@ -24,3 +24,4 @@
 019 auto quick
 020 auto quick
 021 auto quick
+023 auto
Signature · 1 line
1.7.1