Commit Graph

1011 Commits

Author SHA1 Message Date
Christoph Hellwig 68f67d9c74 fix compiler warnings
Include all nessecary headers, use the correct format strings and don't
redefine _GNU_SOURCE.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2008-12-31 12:52:05 +01:00
Eric Sandeen 9890a9a98f test 194, test tricky mapping/conversion around holes
Related to
http://oss.sgi.com/bugzilla/show_bug.cgi?id=801

Latest patch posted on that bug makes this testcase pass...

first 2 tests are simple buffred writ tests making sure stale
data isn't exposed, and hole-blocks aren't mapped.

2nd 2 tests are more related to the above bug, tricky testcase
uncovered by fsx on ppc64 which actually re-maps a block
which should be a hole, bringing stale data back into existence.

V2, don't use non-posix awk extensions

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:34:17 +01:00
Christoph Hellwig ba3308c83b add more tests to the auto group
make sure we run all tests than don't either take forever or currently fail
(or require a tape drive) to the auto group.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
2008-12-30 23:33:39 +01:00
Eric Sandeen 1dce02067c fix dbtest build
At least on my x86_64 RHEL5 box, if gdbm-devel is installed, then the
xfstests build fails with:

gcc dbtest.c -o dbtest -g -O2 -DDEBUG -I../include -DVERSION=\"1.0.0\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -funsigned-char -fno-strict-aliasing -Wall  ../lib/.libs/libtest.a
dbtest.c: In function 'InitDbmLookup':
dbtest.c:147: warning: cast from pointer to integer of different size
dbtest.c:198: warning: cast from pointer to integer of different size
/tmp/ccuekqxe.o: In function `CleanupDbmLookup':
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:304: undefined reference to `dbm_close'
/tmp/ccuekqxe.o: In function `DoDbmLookup':
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:220: undefined reference to `dbm_fetch'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:264: undefined reference to `dbm_fetch'
/tmp/ccuekqxe.o: In function `InitDbmLookup':
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:146: undefined reference to `dbm_open'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:179: undefined reference to `dbm_store'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:192: undefined reference to `dbm_close'
/root/cvs/xfs-cmds-build/xfstests/src/dbtest.c:197: undefined reference to `dbm_open'
collect2: ld returned 1 exit status
gmake[1]: *** [dbtest] Error 1
make: *** [default] Error 2

This patch fixes it for me, but my userspace-fu is weak; does this look ok?

Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:33:34 +01:00
Matthew Kent e062520715 fix xfsqa 189 for log and rt devices
Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:33:30 +01:00
Matthew Kent 73129b3bbb xfstests: add a unified diff option
Add the -udiff option to the test driver to make test output more
easily readable.

[hch:  made -udiff the default]

Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:33:24 +01:00
Mike Frysinger 67f19adfc6 fix number of arguments to AC_DEFINE
aclocal hates when you only specify one parameter to AC_DEFINE ... simple patch
to add the other two parameters

fixes for acl and xfstests

[hch: added nfs4acl]

Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:21:52 +01:00
Eric Sandeen 305b6f33d7 fix up xfs-cmds build after the parallel-fest
My big parallel build patch lost the "make configure" target.
This broke Makepkgs...

Now, IMHO, running configure from make is a little bass-ackwards;
I'd probably prefer to have Makepkgs explicitly run:

 autoconf; configure --myoptions; make

but for now, this adds back in a workable "make configure" target.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2008-12-30 23:21:24 +01:00
Tim Shimmin 88dc8b4815 Test out the perm checks in xfs_setattr - chmod, chown, etc..
Merge of master-melb:xfs-cmds:32713a by kenmcd.

  Test out the perm checks in xfs_setattr - chmod, chown, etc..
2008-12-10 14:03:09 +00:00
Tim Shimmin 4a958ea077 Test out that access time is updated correctly in memory and on disk.
Merge of master-melb:xfs-cmds:32647a by kenmcd.

  Test out that access time is updated correctly in memory and on disk.
2008-12-09 14:15:47 +00:00
Brad Scarlett 286a747ccd XFS Quota tests were unaware of usrquota and grpquota mount options
Merge of master-melb:xfs-cmds:32619a by kenmcd.

  Fix 134 so it is notrun if grpquota mount option is detected.
2008-12-02 04:56:16 +00:00
Donald Douwsma 67cb6d33b5 Take into account nfs4acl output
Merge of master-melb:xfs-cmds:32613a by kenmcd.
2008-12-01 14:09:30 +00:00
Barry Naujok a87c927524 mkfe2fs unfortunately hasn't heard about real enterprise setups using
whole disks and needs the -F option to create a filesystem on those
without asking stupid questions that make the testcases block forever.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:32546a by kenmcd.

  fix xfsqa on whole disks
2008-11-26 02:43:44 +00:00
Barry Naujok 4be0d16663 Fedora is catching calls to open which have O_CREAT set w/o a mode.
Merge of master-melb:xfs-cmds:32535a by kenmcd.

  Fedora is catching calls to open which have O_CREAT set w/o a mode.
2008-11-25 03:10:07 +00:00
Barry Naujok 20167de5d0 Change mode string variable declaration
Merge of master-melb:xfs-cmds:32533a by kenmcd.

  Change mode string variable declaration
2008-11-25 03:09:43 +00:00
Barry Naujok 4877dfbf86 Allow parallel builds of the xfstests package
Merge of master-melb:xfs-cmds:32515a by kenmcd.

  Allow parallel builds of the xfstests package
2008-11-21 02:44:04 +00:00
Barry Naujok e5b8ad3181 Create a tape group for anything which expects
to dump to tape (I guess this is a superset
of "remote" and a few others).  Also, remove
this from the auto group; most people won't have tapes
and -g tape is easy enough (per dchinner's suggestion).
Merge of master-melb:xfs-cmds:32513a by kenmcd.

  create tape group
2008-11-20 14:24:24 +00:00
Barry Naujok 39d66b52f3 xfstests: fix buffer overflow in lstat64.c
lstat64.c was putting an 11-byte string into a 10-byte buffer.
Merge of master-melb:xfs-cmds:32512a by kenmcd.

  fix buffer overflow in lstat64.c
2008-11-20 14:24:01 +00:00
Barry Naujok 89866a0dac xfstest: confirm mkfs.gfs[2] in test 032
mkfs.gfs[2] asks for confirmation before mkfs'ing; without
this test 032 hangs when mkfs.gfs2 is present.

Also, mkfs.gfs needs a few more args to make it go.
Merge of master-melb:xfs-cmds:32510a by kenmcd.

  confirm mkfs.gfs[2] in test 032
2008-11-20 14:23:38 +00:00
Barry Naujok 05163b1003 xfstests: fix nr of args in open calls
Merge of master-melb:xfs-cmds:32509a by kenmcd.

  fix nr of args in open calls
2008-11-20 14:23:14 +00:00
Barry Naujok 2ccda108c4 xfstests: check for dmapi headers
Merge of master-melb:xfs-cmds:32507a by kenmcd.

  xfstests: check for dmapi headers
2008-11-20 14:22:49 +00:00
Tim Shimmin dc4bae27a4 Long devicenames cause this quota output to split onto 2 lines:
# xfs_quota -c "quota -gpu -birnN 99" /mnt/scratch
/dev/mapper/testvol-test2
                           880       1004       1004   00 [--------]           1         10         10   00 [--------]           0          0          0   00 [--------] /mnt/scratch

but if we make that "\n" go away, the test still passes.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of master-melb:xfs-cmds:32444a by kenmcd.

  Long devicenames cause this quota output to split onto 2 lines:
  # xfs_quota -c "quota -gpu -birnN 99" /mnt/scratch
  /dev/mapper/testvol-test2
  880       1004       1004   00 [--------]           1         10         10   00 [--------]           0          0          0   00 [--------] /mnt/scratch
  but if we make that "\n" go away, the test still passes.
  Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
2008-11-06 15:10:24 +00:00
Tim Shimmin a5f4f588c1 Update 189.out for the touch test.
Merge of master-melb:xfs-cmds:32339a by kenmcd.

  Update 189.out for the touch test.
2008-10-15 15:49:12 +00:00
Tim Shimmin e32c0657c0 test out a remount bug where ro->rw doesn't update xfs flag and thinks it is
still readonly. Test using touch.
Code provided by Christoph Hellwig.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:32320a by kenmcd.

  test out a remount bug where ro->rw doesn't update xfs flag and thinks it is
  still readonly. Test using touch.
  Code provided by Christoph Hellwig.
2008-10-14 14:58:57 +00:00
Tim Shimmin 6256598a6a add comment to test about its related bugs in bugworks
Merge of master-melb:xfs-cmds:32116a by kenmcd.

  add comment to test about its related bugs in bugworks
2008-09-15 06:19:07 +00:00