Lines 91-97
bench_linear(int fd,
Link Here
|
91 |
|
91 |
|
92 |
if(debug) |
92 |
if(debug) |
93 |
printf(" off: %llx\n", off); |
93 |
printf(" off: %llx\n", off); |
94 |
lseek64(fd, off, SEEK_SET); |
94 |
if (lseek64(fd, off, SEEK_SET) < 0) |
|
|
95 |
{ |
96 |
if (errno != EINVAL) |
97 |
perror("lseek64() failed"); |
98 |
return -2; |
99 |
} |
95 |
signal(SIGALRM, sigalrm_handler); |
100 |
signal(SIGALRM, sigalrm_handler); |
96 |
stopf = 0; |
101 |
stopf = 0; |
97 |
printf("Testing... "); |
102 |
printf("Testing... "); |
Lines 104-110
bench_linear(int fd,
Link Here
|
104 |
++count; |
109 |
++count; |
105 |
} |
110 |
} |
106 |
alarm(0); |
111 |
alarm(0); |
107 |
if (!stopf) |
112 |
if (!stopf || nr < 0) |
108 |
{ |
113 |
{ |
109 |
if (nr < 0 && errno != EINTR && errno != EIO) |
114 |
if (nr < 0 && errno != EINTR && errno != EIO) |
110 |
printf("\rAborted (end of disk?): %s\n", strerror(errno)); |
115 |
printf("\rAborted (end of disk?): %s\n", strerror(errno)); |