d0e01465c01fce33a49345aa48cf174feba9f0b7
[xfstests-dev.git] / tests / ext4 / 051
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2021 Red Hat Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 051
6 #
7 # Test that tune2fs doesn't fail after ext4 shutdown
8 # Regression test for kernel commit:
9 # b2bbb92f7042 ext4: fix e2fsprogs checksum failure for mounted filesystem
10 #
11 . ./common/preamble
12 _begin_fstest auto rw quick
13
14 # real QA test starts here
15 _supported_fs ext4
16 _require_scratch
17 _require_scratch_shutdown
18 _require_command "$TUNE2FS_PROG" tune2fs
19
20 echo "Silence is golden"
21
22 _scratch_mkfs >/dev/null 2>&1
23 _scratch_mount
24 echo "This is a test" > $SCRATCH_MNT/testfile
25 _scratch_shutdown
26 _scratch_cycle_mount
27 $TUNE2FS_PROG -l $SCRATCH_DEV >> $seqres.full
28 status=0
29 exit