@@ -251,7 +251,7 @@ static void read_test(const int worker, const char *const path)
worker_heartbeat(worker);
/*
* This could catch any alignment faults while reading sys entries
- * seen in commit :bc21785b7336619fb6a67f1fff5afdaf229acc so reading 1024 bytes
+ * seen in commit :1bbc21785b7336619fb6a67f1fff5afdaf229acc so reading 1024 bytes
* in chunks of 8 bytes 128 times
*/
char check_buf[7];
@@ -263,7 +263,7 @@ static void read_test(const int worker, const char *const path)
break;
}
- count = read(fd, buf, sizeof(buf) - 1);
+ count = pread(fd, buf, sizeof(buf) - 1, 0);
elapsed = worker_elapsed(worker);
if (count > 0 && verbose) {