fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 075
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Red Hat Inc.  All Rights Reserved.
4 #
5 # FS QA Test 075
6 #
7 # Commit bbe051c8 disallows ro->rw remount on norecovery mount
8 # This test makes sure the behavior is correct.
9 #
10 . ./common/preamble
11 _begin_fstest auto quick mount
12
13 # Import common functions.
14 . ./common/filter
15 . ./common/quota
16
17 # real QA test starts here
18 _supported_fs xfs
19 _require_scratch
20
21 # norecovery mounts do not succeed with quotas eanbled, so shut them off
22 _qmount_option "defaults"
23
24 echo "Silence is golden"
25 _scratch_mkfs_sized $((512 * 1024 * 1024)) >$seqres.full
26
27 # first ro mount with norecovery
28 _try_scratch_mount "-o ro,norecovery" >>$seqres.full 2>&1 \
29         || _fail "First ro mount failed"
30 # make sure a following remount,rw fails
31 _try_scratch_mount "-o remount,rw" >>$seqres.full 2>&1 \
32         && _fail "Second rw remount succeeded"
33
34 # success, all done
35 status=0
36 exit