aports/testing/criu/lfs64-test.patch
2023-12-27 01:28:34 +01:00

20 lines
510 B
Diff

--- a/test/zdtm/static/unlink_multiple_largefiles.c
+++ b/test/zdtm/static/unlink_multiple_largefiles.c
@@ -124,7 +124,7 @@
check_extent_map(fiemap);
free(fiemap);
- lseek64(fd, FSIZE, SEEK_SET);
+ lseek(fd, FSIZE, SEEK_SET);
create_check_pattern(ebuf, BUFSIZE, seed);
@@ -174,7 +174,7 @@
}
test_msg("Created file: %s, fd %d\n", fnm, fd);
- if (lseek64(fd, FSIZE, SEEK_SET) < 0) {
+ if (lseek(fd, FSIZE, SEEK_SET) < 0) {
pr_perror("Cannot seek to offset %llx", FSIZE);
goto failed;
}