aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libaio/harness/cases/10.t
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2013-07-31 16:15:51 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-08-20 15:34:03 +0100
commit3d4678108a2157db6ae8c290897f67aaed14cdfa (patch)
treee5ce4b22b9fc9f68036937aa931059aee6c79491 /tools/libaio/harness/cases/10.t
parent03145f0fe42c007834c1ef50d95fe6c4f58a326a (diff)
downloadxen-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/10.t')
-rw-r--r--tools/libaio/harness/cases/10.t53
1 files changed, 0 insertions, 53 deletions
diff --git a/tools/libaio/harness/cases/10.t b/tools/libaio/harness/cases/10.t
deleted file mode 100644
index 9d3beb2fdb..0000000000
--- a/tools/libaio/harness/cases/10.t
+++ /dev/null
@@ -1,53 +0,0 @@
-/* 10.t - uses testdir.enospc/rwfile
-- Check results on out-of-space and out-of-quota. (10.t)
- - write that fills filesystem but does not go over should succeed
- - write that fills filesystem and goes over should be partial
- - write to full filesystem should return -ENOSPC
- - read beyond end of file after ENOSPC should return 0
-*/
-#include "aio_setup.h"
-
-#include <sys/time.h>
-#include <sys/resource.h>
-#include <unistd.h>
-
-int test_main(void)
-{
-/* Note: changing either of these requires updating the ext2-enospc.img
- * filesystem image. Also, if SIZE is less than PAGE_SIZE, problems
- * crop up due to ext2's preallocation.
- */
-#define LIMIT 65536
-#define SIZE 65536
- char *buf;
- int rwfd;
- int status = 0, res;
-
- rwfd = open("testdir.enospc/rwfile", O_RDWR|O_CREAT|O_TRUNC, 0600);
- 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, LIMIT-SIZE, WRITE, SIZE);
- status |= attempt_rw(rwfd, buf, SIZE, LIMIT-SIZE, READ, SIZE);
-
- status |= attempt_rw(rwfd, buf, SIZE, LIMIT, WRITE, -ENOSPC);
- status |= attempt_rw(rwfd, buf, SIZE, LIMIT, READ, 0);
-
- res = ftruncate(rwfd, 0); assert(res == 0);
-
- status |= attempt_rw(rwfd, buf, SIZE, 1+LIMIT-SIZE, WRITE, SIZE-1);
- status |= attempt_rw(rwfd, buf, SIZE, 1+LIMIT-SIZE, READ, SIZE-1);
- status |= attempt_rw(rwfd, buf, SIZE, LIMIT, READ, 0);
-
- status |= attempt_rw(rwfd, buf, SIZE, LIMIT, WRITE, -ENOSPC);
- status |= attempt_rw(rwfd, buf, SIZE, LIMIT, READ, 0);
- status |= attempt_rw(rwfd, buf, 0, LIMIT, WRITE, 0);
-
- res = close(rwfd); assert(res == 0);
- res = unlink("testdir.enospc/rwfile"); assert(res == 0);
- return status;
-}
-