Update xfsprogs to latest kernel headers and functions
[xfstests-dev.git] / 184
1 #! /bin/sh
2 # FS QA Test No. 184
3 #
4 # check mknod makes working nodes.
5 #
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2007 Silicon Graphics, Inc.  All Rights Reserved.
8 #-----------------------------------------------------------------------
9 #
10 # creator
11 owner=dgc@sgi.com
12
13 seq=`basename $0`
14 echo "QA output created by $seq - silence is golden"
15
16 here=`pwd`
17 tmp=/tmp/$$
18 status=1        # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
20
21 _cleanup()
22 {
23     cd /
24     rm -f $tmp.*
25     _cleanup_testdir
26 }
27
28 # get standard environment, filters and checks
29 . ./common.rc
30 . ./common.filter
31
32 # real QA test starts here
33 _supported_fs xfs udf nfs
34 _supported_os IRIX Linux
35
36 _setup_testdir
37
38 rm -f $testdir/null
39 mknod $testdir/null c 1 3
40 chmod 666 $testdir/null
41 echo fred > $testdir/null
42
43 status=$?
44 exit