ia64/xen-unstable

view tools/libaio/harness/cases/7.t @ 10736:2937703f0ed0

Added blktap support. Includes kernel driver (enabled as CONFIG_XEN_BLKDEV_TAP=y) and userspace tools. The userspace deamon (blktapctrl) is enabled by default when xend is activated. For further information on using and configuring blktap see tools/blktap/README.
author jchesterfield@dhcp92.uk.xensource.com
date Thu Jul 13 10:13:26 2006 +0100 (2006-07-13)
parents
children
line source
1 /* 7.t
2 - Write overlapping the file size rlimit boundary: should be a short
3 write. (7.t)
4 - Write at the file size rlimit boundary: should give EFBIG. (I think
5 the spec requires that you do NOT deliver SIGXFSZ in this case, where
6 you would do so for sync IO.) (7.t)
7 - Special case: a write of zero bytes at or beyond the file size rlimit
8 boundary must return success. (7.t)
9 */
11 #include <sys/resource.h>
13 void SET_RLIMIT(long long limit)
14 {
15 struct rlimit rlim;
16 int res;
18 rlim.rlim_cur = limit; assert(rlim.rlim_cur == limit);
19 rlim.rlim_max = limit; assert(rlim.rlim_max == limit);
21 res = setrlimit(RLIMIT_FSIZE, &rlim); assert(res == 0);
22 }
24 #define LIMIT 8192
25 #define FILENAME "testdir/rwfile"
27 #include "common-7-8.h"