pv 964111, rv lachlan - > attrname[DM_ATTR_NAME_SIZE] = '\0'; /* terminate...
[xfstests-dev.git] / 056
1 #! /bin/sh
2 # FS QA Test No. 056
3 #
4 # Test xfsdump/xfsrestore to a dump file (as opposed to a tape)
5 # and test restoring various permissions/modes
6 #
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
9 #-----------------------------------------------------------------------
10 #
11 # creator
12 owner=tes@sgi.com
13
14 seq=`basename $0`
15 echo "QA output created by $seq"
16
17 here=`pwd`
18 tmp=/tmp/$$
19 status=0        # success is the default!
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21
22 # get standard environment, filters and checks
23 . ./common.rc
24 . ./common.dump
25
26 # real QA test starts here
27 _supported_fs xfs
28 _supported_os IRIX Linux
29
30 _create_dumpdir_fill_perm
31 _do_dump_file
32 _do_restore_file
33 _ls_compare_sub
34
35 # success, all done
36 exit