Commit Graph

9 Commits

Author SHA1 Message Date
Felix Blyakher d0f0d2f428 xfstests: fix async io error handling in fsx
The result of async io returned in the event.res in addition
to the number of bytes read/written provides negated error
number. The broken libaio defines event.res as unsigned
while the same structure in the kernel defines it as signed.
The kernel indeed treats it as signed, and returns the
negated error number. Till libaio is fixed we provide
the signed long temp var.
Also set errno for each error condition in aio_rw, as the
caller is not aio aware and expects ret(-1)+errno by the
traditional libc convention.

Signed-off-by: Felix Blyakher <felixb@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2009-04-13 16:46:00 -05:00
Lachlan McIlroy 0e907ec7cf fsx was calling vfprintf twice without resetting the va_list argument
Merge of master-melb:xfs-cmds:28212a by kenmcd.

  fsx was calling vfprintf twice without resetting the va_list argument and
  this caused a segfault on the second call.  Now uses one call to vsnprintf
  to print to a buffer and uses that multiple times.
2007-03-08 03:02:20 +00:00
Allan Randall 981ee2573c Merge relevant CXFSQA tests into XFSQA
Merge of master-melb:xfs-cmds:26631a by kenmcd.
2006-08-04 13:44:58 +00:00
Nathan Scott 2446ccc509 Add AIO test 113 into the mix, enable AIO testing capability in local fsx.
Merge of master-melb:xfs-cmds:21487a by kenmcd.
2005-02-14 13:52:05 +00:00
Tim Shimmin 8672beb942 Get xfstests building on irix using root/toolroot.
Merge of xfs-cmds-melb:slinx:19868a by kenmcd.

  Simplify instructions to use make_irix script.
2004-10-22 14:38:06 +00:00
ptools cb6beb9759 Fixed merge problems 2004-06-15 07:32:36 +00:00
fsgqa cad234da75 Merge in latest fsx changes from outside - AIO and direct IO support. 2004-03-18 23:46:57 +00:00
fsgqa 347f4721b7 Add an fsx test, allow fsx to preallocate file space on -x 2003-08-01 05:48:02 +00:00
Nathan Scott 332ee29d1a xfstests updates - rework build to be like other xfs packages, revive some old fs test tools and reenable xfs extensions, move ltp code into a separate subdir to help keeping in sync with real ltp project (hopefully) 2003-07-07 06:36:46 +00:00