X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2Ftests%2Fsanity.c;h=e652cbb67a7f2d74d5c3a5beb2d27533de90bea4;hb=8eaf21f9a9a6264598b9fed93b2c5d423b00bd9a;hp=c0c3c059797b49bb5c7c6c2ea448225f259cc6ab;hpb=796dc5eef5a2b420d001d84a43e4fd9d9d2b88e9;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/tests/sanity.c b/lustre/liblustre/tests/sanity.c index c0c3c05..e652cbb 100644 --- a/lustre/liblustre/tests/sanity.c +++ b/lustre/liblustre/tests/sanity.c @@ -793,8 +793,8 @@ int t23(char *name) { char path[MAX_PATH_LENGTH]; int fd; - off_t ret; - off_t off; + long long ret; + loff_t off; ENTER("handle seek > 2GB"); snprintf(path, MAX_PATH_LENGTH, "%s/f%s", lustre_path, name); @@ -843,7 +843,7 @@ int t23(char *name) ret = lseek(fd, -buf_size + 2, SEEK_CUR); if (ret != off) { printf("relative seek error for %d %llu != %llu\n", - -buf_size + 2, ret, off); + -buf_size + 2, ret, (unsigned long long) off); if (ret == -1) perror("relative seek"); return -1; @@ -869,7 +869,7 @@ int t23(char *name) off = 2048ULL * 1024 * 1024, SEEK_SET; ret = lseek(fd, off, SEEK_SET); if (ret != off) { - printf("seek 2GB error for %llu != %llu\n", ret, off); + printf("seek 2GB error for %llu != %llu\n", ret, (unsigned long long) off); if (ret == -1) perror("seek 2GB"); return -1;