Commit Graph

15 Commits

Author SHA1 Message Date
Danny Al-Gaaf
fc41684e99 qa/workunits/direct_io/test_sync_io.c: add proper error handling
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-20 16:56:03 +01:00
Danny Al-Gaaf
a8a5683e6d test_short_dio_read.c: add proper error handling
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-20 16:37:37 +01:00
Sage Weil
a2ac9358a3 qa: add 16MB direct-io write test
See bug #2657.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-18 14:13:29 -07:00
Danny Al-Gaaf
6f3f17397a test_sync_io.c: add error handling
Add error handling for open(), posix_memalign() and malloc().
Reuse code for read_* and write_* functions.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-15 10:22:49 +01:00
Danny Al-Gaaf
26cdb6a61b test_short_dio_read.c: add error handling
Add error handling for open() calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-02-15 10:21:57 +01:00
Danny Al-Gaaf
a0d978f615 remove twice included linux/types.h
Cleanup includes: remove twice included linux/types.h

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2012-11-28 08:25:42 -08:00
Sage Weil
d5a9301f2c qa: define _GNU_SOURCE for qa helpers; add btrfs dir makefile
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-08-22 21:18:00 -07:00
Colin Patrick McCabe
3ce41446a6 Define _GNU_SOURCE in src/Makefile.am
We end up needing _GNU_SOURCE in a bunch of places-- to get direct i/o,
pipe2, and some other Linux-specific interfaces.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-08-22 15:35:13 -07:00
Sage Weil
954e09661f qa: do not use automake for workunit makefiles
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-14 12:53:33 -07:00
Sage Weil
40f5ab9659 qa/workunits/direct_io: fit .gitignore
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-14 12:35:35 -07:00
Sage Weil
66229c7a54 qa: direct_io: fix warnings
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-06-13 22:11:51 -07:00
Sage Weil
8ce98b22de qa: test_sync_io: zero buffers prior to read
Be extra paranoid to ensure we read back the correct data and didn't
just find it in undefined memory.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 16:23:28 -07:00
Sage Weil
d89c9a1303 qa: test_sync_io improvements
Exit (without removing foo) on error.

Allow read- or write-only operation.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 16:18:23 -07:00
Sage Weil
1e96f71fba qa: fix test_shorT_dio_read
No args, hardcode filename.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 14:17:16 -07:00
Sage Weil
d5bba79ebb qa: move compiled workunits into organized directory
No need for a separate qa/src/ dir; just put them where we want them.  We
need to ignore non-executable files when doing the bulk runs anyway.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-06-13 13:29:30 -07:00