check: use generated group files
[xfstests-dev.git] / tests / ext4 / 037
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 ext4/037
6 #
7 # Test mount a needs_recovery partition with noload option.
8 # ext4 used to Oops until part of this commit:
9 #
10 # 744692d ext4: use ext4_get_block_write in buffer write
11 #
12 . ./common/preamble
13 _begin_fstest auto quick
14
15 # Import common functions.
16 . ./common/filter
17
18 # real QA test starts here
19 _supported_fs ext3 ext4
20
21 # nofsck as we modify sb via debugfs
22 _require_scratch_nocheck
23
24 echo "Silence is golden"
25
26 _scratch_mkfs >>$seqres.full 2>&1
27
28 # set needs_recovery feature bit
29 debugfs -w -R "feature +needs_recovery" $SCRATCH_DEV \
30         >>$seqres.full 2>&1
31
32 # mount with noload option
33 _try_scratch_mount "-o noload" >>$seqres.full 2>&1
34
35 # success, all done
36 status=0
37 exit