3 #-----------------------------------------------------------------------
4 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation.
10 # This program is distributed in the hope that it would be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 #-----------------------------------------------------------------------
23 # exercise mkfs log (internal/external) zeroing
29 echo "QA output created by $seq"
33 status=1 # failure is the default
34 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
36 # get standard environment, filters and checks
43 s/data device: ([\w|\/.-]+)/data device: DDEV/;
44 s/log device: ([\w|\/.-]+) daddr: (\d+) length: (\d+)/log device: LDEV daddr: XXX length: XXX/;
45 s/log file: "([\w|\/.-]+)" daddr: (\d+) length: (\d+)/log device: LDEV daddr: XXX length: XXX/;
46 s/skipped (\w+) zeroed blocks/skipped XXX zeroed blocks/;
47 s/in range: \d+ - \d+/in range: XXX - XXX/;
48 s/^uuid: *[0-9a-f-][0-9a-f-]* *format: *.*$/uuid: <UUID> format: <FORMAT>/;
49 s/(length of Log Record:) \d+/$1 <LEN>/;
50 s/version: \d/version: <VERN>/;
51 s/h_size: \d+/h_size: <H_SIZE>/;
56 # real QA test starts here
63 _scratch_mkfs_xfs | _filter_mkfs 2>/dev/null
66 _scratch_xfs_logprint | _filter_logprint