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 _begin_fstest auto quick snapshot
13 # Import common functions.
16 # real QA test starts here
20 _scratch_mkfs > /dev/null 2>&1
22 _scratch_mount -o rw,remount
24 $BTRFS_UTIL_PROG subvolume snapshot $SCRATCH_MNT $SCRATCH_MNT/snap >> $seqres.full 2>&1 \
25 || _fail "couldn't create snapshot"
27 echo "Silence is golden"