new file mode 100755
@@ -0,0 +1,81 @@
+#! /bin/bash
+# FS QA Test No. btrfs/123
+#
+# Test BTRFS seed device add
+#
+# Steps:
+# Create seed FS and mount
+# Device add
+# Check if the FS is now RW-able
+#
+#-----------------------------------------------------------------------
+# Copyright (c) 2016 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_nocheck
+_require_scratch_dev_pool 2
+
+rm -f $seqres.full
+
+_scratch_dev_pool_get 1
+_spare_dev_get
+
+_scratch_pool_mkfs >> $seqres.full 2>&1
+
+btrfstune -S 1 $SCRATCH_DEV_POOL || \
+ _fail "btrfstune failed to mark '$SCRATCH_DEV_POOL' as seed"
+
+_scratch_mount >> $seqres.full 2>&1
+
+_run_btrfs_util_prog filesystem show -m
+
+_run_btrfs_util_prog device add $SPARE_DEV "$SCRATCH_MNT"
+
+_run_btrfs_util_prog filesystem show -m
+
+touch "$SCRATCH_MNT"/tf1 || _fail "FS not Writeable"
+
+_scratch_unmount
+_spare_dev_put
+_scratch_dev_pool_put
+
+echo "Silence is golden"
+status=0
+exit
new file mode 100644
@@ -0,0 +1 @@
+QA output created by 125
@@ -126,3 +126,4 @@
122 auto quick snapshot qgroup
123 auto replace
124 auto replace
+125 auto replace