2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
7 # exercise mkfs log (internal/external) zeroing
10 _begin_fstest mkfs logprint log auto quick
12 # Import common functions.
18 s/data device: ([\w|\/.-]+)/data device: DDEV/;
19 s/log device: ([\w|\/.-]+) daddr: (\d+) length: (\d+)/log device: LDEV daddr: XXX length: XXX/;
20 s/log file: "([\w|\/.-]+)" daddr: (\d+) length: (\d+)/log device: LDEV daddr: XXX length: XXX/;
21 s/skipped (\w+) zeroed blocks/skipped XXX zeroed blocks/;
22 s/in range: \d+ - \d+/in range: XXX - XXX/;
23 s/^uuid: *[0-9a-f-][0-9a-f-]* *format: *.*$/uuid: <UUID> format: <FORMAT>/;
24 s/(length of Log Record:) \d+/$1 <LEN>/;
25 s/version: \d/version: <VERN>/;
26 s/h_size: \d+/h_size: <H_SIZE>/;
28 s/extended-header: cycle: 1[\r|\n]+$//;
33 # real QA test starts here
39 _scratch_mkfs_xfs | _filter_mkfs 2>/dev/null
42 _scratch_xfs_logprint | filter_logprint