2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Red Hat Inc. All Rights Reserved.
7 # Commit bbe051c8 disallows ro->rw remount on norecovery mount
8 # This test makes sure the behavior is correct.
11 _begin_fstest auto quick mount
13 # Import common functions.
17 # real QA test starts here
21 # norecovery mounts do not succeed with quotas eanbled, so shut them off
22 _qmount_option "defaults"
24 echo "Silence is golden"
25 _scratch_mkfs_sized $((512 * 1024 * 1024)) >$seqres.full
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"