diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-07-31 16:15:51 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-20 15:34:03 +0100 |
commit | 3d4678108a2157db6ae8c290897f67aaed14cdfa (patch) | |
tree | e5ce4b22b9fc9f68036937aa931059aee6c79491 /tools/libaio/harness/cases/6.t | |
parent | 03145f0fe42c007834c1ef50d95fe6c4f58a326a (diff) | |
download | xen-3d4678108a2157db6ae8c290897f67aaed14cdfa.tar.gz xen-3d4678108a2157db6ae8c290897f67aaed14cdfa.tar.bz2 xen-3d4678108a2157db6ae8c290897f67aaed14cdfa.zip |
tools: remove in tree libaio
We have defaulted to using the system libaio for a while now and I din't think
there are any relevant distros which don't have it that running Xen 4.4 would
be reasonable on.
Also it has caused confusion because it is not ever wanted on ARM, but the
build system doesn't express that (could be fixed, but deleting is the right
thing to do anyway).
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Matt Wilson <msw@amazon.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libaio/harness/cases/6.t')
-rw-r--r-- | tools/libaio/harness/cases/6.t | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/tools/libaio/harness/cases/6.t b/tools/libaio/harness/cases/6.t deleted file mode 100644 index cea4b01c96..0000000000 --- a/tools/libaio/harness/cases/6.t +++ /dev/null @@ -1,57 +0,0 @@ -/* 6.t -- huge reads (pinned pages) (6.t) -- huge writes (6.t) -*/ -#include "aio_setup.h" -#include <sys/mman.h> - -long getmemsize(void) -{ - FILE *f = fopen("/proc/meminfo", "r"); - long size; - int gotit = 0; - char str[256]; - - assert(f != NULL); - while (NULL != fgets(str, 255, f)) { - str[255] = 0; - if (0 == memcmp(str, "MemTotal:", 9)) { - if (1 == sscanf(str + 9, "%ld", &size)) { - gotit = 1; - break; - } - } - } - fclose(f); - - assert(gotit != 0); - return size; -} - -int test_main(void) -{ - char *buf; - int rwfd; - int status = 0, res; - long size; - - size = getmemsize(); - printf("size = %ld\n", size); - assert(size >= (16 * 1024)); - if (size > (768 * 1024)) - size = 768 * 1024; - size *= 1024; - - rwfd = open("testdir/rwfile", O_RDWR); assert(rwfd != -1); - res = ftruncate(rwfd, 0); assert(res == 0); - buf = malloc(size); assert(buf != NULL); - - //memset(buf, 0, size); - status |= attempt_rw(rwfd, buf, size, 0, WRITE, size); - status |= attempt_rw(rwfd, buf, size, 0, READ, size); - - //res = ftruncate(rwfd, 0); assert(res == 0); - - return status; -} - |