summaryrefslogtreecommitdiff
path: root/filesystems/openzfs/files
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/openzfs/files')
-rw-r--r--filesystems/openzfs/files/patch-cmd_zinject_zinject.c32
-rw-r--r--filesystems/openzfs/files/patch-tests_zfs-tests_cmd_clonefile.c39
-rw-r--r--filesystems/openzfs/files/patch-tests_zfs-tests_cmd_crypto__test.c11
-rw-r--r--filesystems/openzfs/files/patch-tests_zfs-tests_tests_functional_vdev__disk_page__alignment.c29
4 files changed, 11 insertions, 100 deletions
diff --git a/filesystems/openzfs/files/patch-cmd_zinject_zinject.c b/filesystems/openzfs/files/patch-cmd_zinject_zinject.c
deleted file mode 100644
index a817c794e5b7..000000000000
--- a/filesystems/openzfs/files/patch-cmd_zinject_zinject.c
+++ /dev/null
@@ -1,32 +0,0 @@
---- cmd/zinject/zinject.c.orig 2025-03-29 23:43:40 UTC
-+++ cmd/zinject/zinject.c
-@@ -453,7 +453,8 @@ print_data_handler(int id, const char *pool, zinject_r
-
-
- (void) printf("%3d %-15s %-6llu %-6llu %-8s %-3d 0x%02x %-15s "
-- "%6lu %6lu\n", id, pool, (u_longlong_t)record->zi_objset,
-+ "%6" PRIu64 " %6" PRIu64 "\n", id, pool,
-+ (u_longlong_t)record->zi_objset,
- (u_longlong_t)record->zi_object, type_to_name(record->zi_type),
- record->zi_level, record->zi_dvas, rangebuf,
- record->zi_match_count, record->zi_inject_count);
-@@ -490,7 +491,8 @@ print_device_handler(int id, const char *pool, zinject
- (((double)record->zi_freq) / ZI_PERCENTAGE_MAX) * 100.0f;
-
- (void) printf("%3d %-15s %llx %-5s %-10s %8.4f%% "
-- "%6lu %6lu\n", id, pool, (u_longlong_t)record->zi_guid,
-+ "%6" PRIu64 " %6" PRIu64 "\n", id, pool,
-+ (u_longlong_t)record->zi_guid,
- iotype_to_str(record->zi_iotype), err_to_str(record->zi_error),
- freq, record->zi_match_count, record->zi_inject_count);
-
-@@ -525,7 +527,8 @@ print_delay_handler(int id, const char *pool, zinject_
- (((double)record->zi_freq) / ZI_PERCENTAGE_MAX) * 100.0f;
-
- (void) printf("%3d %-15s %llx %10llu %5llu %8.4f%% "
-- "%6lu %6lu\n", id, pool, (u_longlong_t)record->zi_guid,
-+ "%6" PRIu64 " %6" PRIu64 "\n", id, pool,
-+ (u_longlong_t)record->zi_guid,
- (u_longlong_t)NSEC2MSEC(record->zi_timer),
- (u_longlong_t)record->zi_nlanes,
- freq, record->zi_match_count, record->zi_inject_count);
diff --git a/filesystems/openzfs/files/patch-tests_zfs-tests_cmd_clonefile.c b/filesystems/openzfs/files/patch-tests_zfs-tests_cmd_clonefile.c
deleted file mode 100644
index 5448993d1e7f..000000000000
--- a/filesystems/openzfs/files/patch-tests_zfs-tests_cmd_clonefile.c
+++ /dev/null
@@ -1,39 +0,0 @@
---- tests/zfs-tests/cmd/clonefile.c.orig 2025-03-10 22:42:59 UTC
-+++ tests/zfs-tests/cmd/clonefile.c
-@@ -205,6 +205,7 @@ main(int argc, char **argv)
-
- loff_t soff = 0, doff = 0;
- size_t len = SSIZE_MAX;
-+ unsigned long long len2;
- if ((argc-optind) == 5) {
- soff = strtoull(argv[optind+2], NULL, 10);
- if (soff == ULLONG_MAX) {
-@@ -220,8 +221,8 @@ main(int argc, char **argv)
- strcmp(argv[optind+4], "all") == 0) {
- len = SSIZE_MAX;
- } else {
-- len = strtoull(argv[optind+4], NULL, 10);
-- if (len == ULLONG_MAX) {
-+ len2 = strtoull(argv[optind+4], NULL, 10);
-+ if (len2 == ULLONG_MAX) {
- fprintf(stderr, "invalid length");
- return (1);
- }
-@@ -268,7 +269,7 @@ main(int argc, char **argv)
- off_t dpos = lseek(dfd, 0, SEEK_CUR);
- off_t dlen = lseek(dfd, 0, SEEK_END);
-
-- fprintf(stderr, "file offsets: src=%lu/%lu; dst=%lu/%lu\n",
-+ fprintf(stderr, "file offsets: src=%jd/%jd; dst=%jd/%jd\n",
- spos, slen, dpos, dlen);
- }
-
-@@ -331,7 +332,7 @@ do_copyfilerange(int sfd, int dfd, loff_t soff, loff_t
- }
- if (copied != len) {
- fprintf(stderr, "copy_file_range: copied less than requested: "
-- "requested=%lu; copied=%lu\n", len, copied);
-+ "requested=%zu; copied=%zd\n", len, copied);
- return (1);
- }
- return (0);
diff --git a/filesystems/openzfs/files/patch-tests_zfs-tests_cmd_crypto__test.c b/filesystems/openzfs/files/patch-tests_zfs-tests_cmd_crypto__test.c
new file mode 100644
index 000000000000..408802f20a63
--- /dev/null
+++ b/filesystems/openzfs/files/patch-tests_zfs-tests_cmd_crypto__test.c
@@ -0,0 +1,11 @@
+--- tests/zfs-tests/cmd/crypto_test.c.orig 2025-05-06 18:18:44 UTC
++++ tests/zfs-tests/cmd/crypto_test.c
+@@ -861,7 +861,7 @@ test_result(const crypto_test_t *test, int encrypt_rv,
+ return (pass);
+
+ /* print summary of test result */
+- printf("%s[%lu]: encrypt=%s decrypt=%s\n", test->fileloc, test->id,
++ printf("%s[%" PRIu64 "]: encrypt=%s decrypt=%s\n", test->fileloc, test->id,
+ encrypt_pass ? "PASS" : "FAIL",
+ decrypt_pass ? "PASS" : "FAIL");
+
diff --git a/filesystems/openzfs/files/patch-tests_zfs-tests_tests_functional_vdev__disk_page__alignment.c b/filesystems/openzfs/files/patch-tests_zfs-tests_tests_functional_vdev__disk_page__alignment.c
deleted file mode 100644
index 3a78abbb89d2..000000000000
--- a/filesystems/openzfs/files/patch-tests_zfs-tests_tests_functional_vdev__disk_page__alignment.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- tests/zfs-tests/tests/functional/vdev_disk/page_alignment.c.orig 2025-03-30 00:02:54 UTC
-+++ tests/zfs-tests/tests/functional/vdev_disk/page_alignment.c
-@@ -420,14 +420,14 @@ run_test(const page_test_t *test, bool verbose)
- size_t take = MIN(rem, len);
-
- if (verbose)
-- printf(" page %d [off %lx len %lx], "
-- "rem %lx, take %lx\n",
-+ printf(" page %d [off %zx len %zx], "
-+ "rem %zx, take %zx\n",
- i, off, len, rem, take);
-
- if (vdev_disk_check_alignment_cb(NULL, off, take, &s)) {
- if (verbose)
- printf(" ABORT: misalignment detected, "
-- "rem %lx\n", rem);
-+ "rem %zx\n", rem);
- return (false);
- }
-
-@@ -438,7 +438,7 @@ run_test(const page_test_t *test, bool verbose)
-
- if (rem > 0) {
- if (verbose)
-- printf(" ABORT: ran out of pages, rem %lx\n", rem);
-+ printf(" ABORT: ran out of pages, rem %zx\n", rem);
- return (false);
- }
-