blob: 3fc860564ceecbc5e8af489610e187fe48a7eb43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2020 Chengguang Xu <cgxu519@mykernel.net>.
# All Rights Reserved.
#
# FS QA Test 599
#
# Test data integrity for ro remount.
#
. ./common/preamble
_begin_fstest auto quick remount shutdown
status=0
# Import common functions.
. ./common/filter
# real QA test starts here
_supported_fs generic
_require_fssum
_require_scratch
_require_scratch_shutdown
_scratch_mkfs &>/dev/null
_scratch_mount
localdir=$SCRATCH_MNT/dir
mkdir $localdir
sync
# fssum used for comparing checksum of test file(data & metedata),
# exclude checking about atime, block structure, open error.
$FSSUM_PROG -ugomAcdES -f -w $tmp.fssum $localdir
_scratch_remount ro
_scratch_shutdown
_scratch_cycle_mount
$FSSUM_PROG -r $tmp.fssum $localdir
exit
|