2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Red Hat Inc. All Rights Reserved.
7 # Test mount a needs_recovery partition with noload option.
8 # ext4 used to Oops until part of this commit:
10 # 744692d ext4: use ext4_get_block_write in buffer write
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
31 # real QA test starts here
32 _supported_fs ext3 ext4
34 # nofsck as we modify sb via debugfs
35 _require_scratch_nocheck
37 # remove previous $seqres.full before test
39 echo "Silence is golden"
41 _scratch_mkfs >>$seqres.full 2>&1
43 # set needs_recovery feature bit
44 debugfs -w -R "feature +needs_recovery" $SCRATCH_DEV \
47 # mount with noload option
48 _try_scratch_mount "-o noload" >>$seqres.full 2>&1