Home | History | Annotate | Download | only in direct_io

Lines Matching refs:BUFSIZE

28  *	determined by childnumber * bufsize. There is no need to use any locks.
37 * diotest3 [-b bufsize] [-o offset] [-n numchild]
65 #define BUFSIZE 4096
73 static int bufsize = BUFSIZE; /* Buffersize. Default 4k */
80 "Usage: diotest3 [-b bufsize] [-o offset] [-n numchild] [-i iterations] [-f filename]\n");
86 * For each iteration, write data starting at offse+iter*bufsize
99 seekoff = offset + bufsize * childnum;
100 if ((buf1 = valloc(bufsize)) == 0) {
104 if ((buf2 = valloc(bufsize)) == 0) {
111 fillbuf(buf1, bufsize, childnum + i);
116 if (write(fd_w, buf1, bufsize) < bufsize) {
131 if (read(fd_r, buf2, bufsize) < bufsize) {
135 if (bufcmp(buf1, buf2, bufsize) != 0) {
241 if ((bufsize = atoi(optarg)) <= 0) {
242 fprintf(stderr, "bufsize must be > 0\n");
245 if (bufsize % 4096 != 0) {
247 "bufsize must be multiple of 4k\n");