2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Fusion IO. All Rights Reserved.
5 # FS QA Test No. btrfs/015
7 # Regression test to make sure we can create a snapshot after mounting with
8 # readonly and remounting rw.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
17 status=1 # failure is the default!
24 trap "_cleanup ; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # real QA test starts here
36 _scratch_mkfs > /dev/null 2>&1
38 _scratch_mount -o rw,remount
40 $BTRFS_UTIL_PROG subvolume snapshot $SCRATCH_MNT $SCRATCH_MNT/snap >> $seqres.full 2>&1 \
41 || _fail "couldn't create snapshot"
43 echo "Silence is golden"