1 diff -ur -x Makefile.in zfs-0.7.3/module/icp/io/aes.c zfs-0.7.3-randstruct/module/icp/io/aes.c
2 --- zfs-0.7.3/module/icp/io/aes.c 2017-10-18 23:47:55.000000000 +0200
3 +++ zfs-0.7.3-randstruct/module/icp/io/aes.c 2017-11-18 14:27:50.736864845 +0100
5 crypto_data_t *, crypto_spi_ctx_template_t, crypto_req_handle_t);
7 static crypto_cipher_ops_t aes_cipher_ops = {
18 + .encrypt_init = aes_encrypt_init,
19 + .encrypt = aes_encrypt,
20 + .encrypt_update = aes_encrypt_update,
21 + .encrypt_final = aes_encrypt_final,
22 + .encrypt_atomic = aes_encrypt_atomic,
23 + .decrypt_init = aes_decrypt_init,
24 + .decrypt = aes_decrypt,
25 + .decrypt_update = aes_decrypt_update,
26 + .decrypt_final = aes_decrypt_final,
27 + .decrypt_atomic = aes_decrypt_atomic
30 static int aes_mac_atomic(crypto_provider_handle_t, crypto_session_id_t,
32 crypto_spi_ctx_template_t, crypto_req_handle_t);
34 static crypto_mac_ops_t aes_mac_ops = {
40 - aes_mac_verify_atomic
41 + .mac_atomic = aes_mac_atomic,
42 + .mac_verify_atomic = aes_mac_verify_atomic
45 static int aes_create_ctx_template(crypto_provider_handle_t,
47 static int aes_free_context(crypto_ctx_t *);
49 static crypto_ctx_ops_t aes_ctx_ops = {
50 - aes_create_ctx_template,
52 + .create_ctx_template = aes_create_ctx_template,
53 + .free_context = aes_free_context
56 +#undef co_control_ops
60 static crypto_ops_t aes_crypto_ops = {{{{{
75 + .co_control_ops = &aes_control_ops,
76 + .co_cipher_ops = &aes_cipher_ops,
77 + .co_mac_ops = &aes_mac_ops,
78 + .co_ctx_ops = &aes_ctx_ops
81 static crypto_provider_info_t aes_prov_info = {{{{
82 diff -ur -x Makefile.in zfs-0.7.3/module/icp/io/sha1_mod.c zfs-0.7.3-randstruct/module/icp/io/sha1_mod.c
83 --- zfs-0.7.3/module/icp/io/sha1_mod.c 2017-10-18 23:47:55.000000000 +0200
84 +++ zfs-0.7.3-randstruct/module/icp/io/sha1_mod.c 2017-11-18 14:32:59.798477403 +0100
88 static crypto_digest_ops_t sha1_digest_ops = {
95 + .digest_init = sha1_digest_init,
96 + .digest = sha1_digest,
97 + .digest_update = sha1_digest_update,
98 + .digest_final = sha1_digest_final,
99 + .digest_atomic = sha1_digest_atomic
102 static int sha1_mac_init(crypto_ctx_t *, crypto_mechanism_t *, crypto_key_t *,
103 @@ -136,12 +135,11 @@
104 crypto_spi_ctx_template_t, crypto_req_handle_t);
106 static crypto_mac_ops_t sha1_mac_ops = {
112 - sha1_mac_verify_atomic
113 + .mac_init = sha1_mac_init,
114 + .mac_update = sha1_mac_update,
115 + .mac_final = sha1_mac_final,
116 + .mac_atomic = sha1_mac_atomic,
117 + .mac_verify_atomic = sha1_mac_verify_atomic
120 static int sha1_create_ctx_template(crypto_provider_handle_t,
121 @@ -150,25 +148,19 @@
122 static int sha1_free_context(crypto_ctx_t *);
124 static crypto_ctx_ops_t sha1_ctx_ops = {
125 - sha1_create_ctx_template,
127 + .create_ctx_template = sha1_create_ctx_template,
128 + .free_context = sha1_free_context
131 +#undef co_control_ops
132 +#undef co_digest_ops
135 static crypto_ops_t sha1_crypto_ops = {{{{{
150 + .co_control_ops = &sha1_control_ops,
151 + .co_digest_ops = &sha1_digest_ops,
152 + .co_mac_ops = &sha1_mac_ops,
153 + .co_ctx_ops = &sha1_ctx_ops,
156 static crypto_provider_info_t sha1_prov_info = {{{{
157 diff -ur -x Makefile.in zfs-0.7.3/module/icp/io/sha2_mod.c zfs-0.7.3-randstruct/module/icp/io/sha2_mod.c
158 --- zfs-0.7.3/module/icp/io/sha2_mod.c 2017-10-18 23:47:55.000000000 +0200
159 +++ zfs-0.7.3-randstruct/module/icp/io/sha2_mod.c 2017-11-18 14:36:27.081039215 +0100
160 @@ -143,12 +143,11 @@
161 crypto_req_handle_t);
163 static crypto_digest_ops_t sha2_digest_ops = {
166 - sha2_digest_update,
170 + .digest_init = sha2_digest_init,
171 + .digest = sha2_digest,
172 + .digest_update = sha2_digest_update,
173 + .digest_final = sha2_digest_final,
174 + .digest_atomic = sha2_digest_atomic
177 static int sha2_mac_init(crypto_ctx_t *, crypto_mechanism_t *, crypto_key_t *,
178 @@ -164,12 +163,11 @@
179 crypto_spi_ctx_template_t, crypto_req_handle_t);
181 static crypto_mac_ops_t sha2_mac_ops = {
187 - sha2_mac_verify_atomic
188 + .mac_init = sha2_mac_init,
189 + .mac_update = sha2_mac_update,
190 + .mac_final = sha2_mac_final,
191 + .mac_atomic = sha2_mac_atomic,
192 + .mac_verify_atomic = sha2_mac_verify_atomic
195 static int sha2_create_ctx_template(crypto_provider_handle_t,
196 @@ -178,25 +176,19 @@
197 static int sha2_free_context(crypto_ctx_t *);
199 static crypto_ctx_ops_t sha2_ctx_ops = {
200 - sha2_create_ctx_template,
202 + .create_ctx_template = sha2_create_ctx_template,
203 + .free_context = sha2_free_context
206 +#undef co_control_ops
207 +#undef co_digest_ops
210 static crypto_ops_t sha2_crypto_ops = {{{{{
225 + .co_control_ops = &sha2_control_ops,
226 + .co_digest_ops = &sha2_digest_ops,
227 + .co_mac_ops = &sha2_mac_ops,
228 + .co_ctx_ops = &sha2_ctx_ops
231 static crypto_provider_info_t sha2_prov_info = {{{{
232 diff -ur -x Makefile.in zfs-0.7.3/module/icp/io/skein_mod.c zfs-0.7.3-randstruct/module/icp/io/skein_mod.c
233 --- zfs-0.7.3/module/icp/io/skein_mod.c 2017-10-18 23:47:55.000000000 +0200
234 +++ zfs-0.7.3-randstruct/module/icp/io/skein_mod.c 2017-11-18 14:39:32.882976968 +0100
236 crypto_req_handle_t);
238 static crypto_digest_ops_t skein_digest_ops = {
244 - skein_digest_atomic
245 + .digest_init = skein_digest_init,
246 + .digest = skein_digest,
247 + .digest_update = skein_update,
248 + .digest_final = skein_final,
249 + .digest_atomic = skein_digest_atomic
252 static int skein_mac_init(crypto_ctx_t *, crypto_mechanism_t *, crypto_key_t *,
253 @@ -103,12 +102,10 @@
254 crypto_spi_ctx_template_t, crypto_req_handle_t);
256 static crypto_mac_ops_t skein_mac_ops = {
259 - skein_update, /* using regular digest update is OK here */
260 - skein_final, /* using regular digest final is OK here */
263 + .mac_init = skein_mac_init,
264 + .mac_update = skein_update, /* using regular digest update is OK here */
265 + .mac_final = skein_final, /* using regular digest final is OK here */
266 + .mac_atomic = skein_mac_atomic,
269 static int skein_create_ctx_template(crypto_provider_handle_t,
270 @@ -117,25 +114,19 @@
271 static int skein_free_context(crypto_ctx_t *);
273 static crypto_ctx_ops_t skein_ctx_ops = {
274 - skein_create_ctx_template,
276 + .create_ctx_template = skein_create_ctx_template,
277 + .free_context = skein_free_context
280 +#undef co_control_ops
281 +#undef co_digest_ops
284 static crypto_ops_t skein_crypto_ops = {{{{{
285 - &skein_control_ops,
299 + .co_control_ops = &skein_control_ops,
300 + .co_digest_ops = &skein_digest_ops,
301 + .co_mac_ops = &skein_mac_ops,
302 + .co_ctx_ops = &skein_ctx_ops,
305 static crypto_provider_info_t skein_prov_info = {{{{
306 diff -ur -x Makefile.in zfs-0.7.3/module/icp/os/modconf.c zfs-0.7.3-randstruct/module/icp/os/modconf.c
307 --- zfs-0.7.3/module/icp/os/modconf.c 2017-10-18 23:47:55.000000000 +0200
308 +++ zfs-0.7.3-randstruct/module/icp/os/modconf.c 2017-11-18 14:41:58.243714079 +0100
310 * Cryptographic Modules
312 struct mod_ops mod_cryptoops = {
313 - mod_null, mod_null, mod_infonull
314 + .modm_install = mod_null,
315 + .modm_remove = mod_null,
316 + .modm_info = mod_infonull
320 diff -ur -x Makefile.in zfs-0.7.3/module/nvpair/nvpair_alloc_fixed.c zfs-0.7.3-randstruct/module/nvpair/nvpair_alloc_fixed.c
321 --- zfs-0.7.3/module/nvpair/nvpair_alloc_fixed.c 2017-10-18 23:47:55.000000000 +0200
322 +++ zfs-0.7.3-randstruct/module/nvpair/nvpair_alloc_fixed.c 2017-11-18 13:47:40.722198859 +0100
323 @@ -110,11 +110,10 @@
326 const nv_alloc_ops_t nv_fixed_ops_def = {
327 - nv_fixed_init, /* nv_ao_init() */
328 - NULL, /* nv_ao_fini() */
329 - nv_fixed_alloc, /* nv_ao_alloc() */
330 - nv_fixed_free, /* nv_ao_free() */
331 - nv_fixed_reset /* nv_ao_reset() */
332 + .nv_ao_init = nv_fixed_init, /* nv_ao_init() */
333 + .nv_ao_alloc = nv_fixed_alloc, /* nv_ao_alloc() */
334 + .nv_ao_free = nv_fixed_free, /* nv_ao_free() */
335 + .nv_ao_reset = nv_fixed_reset /* nv_ao_reset() */
338 const nv_alloc_ops_t *nv_fixed_ops = &nv_fixed_ops_def;
339 diff -ur -x Makefile.in zfs-0.7.3/module/nvpair/nvpair_alloc_spl.c zfs-0.7.3-randstruct/module/nvpair/nvpair_alloc_spl.c
340 --- zfs-0.7.3/module/nvpair/nvpair_alloc_spl.c 2017-10-18 23:47:55.000000000 +0200
341 +++ zfs-0.7.3-randstruct/module/nvpair/nvpair_alloc_spl.c 2017-11-18 13:44:13.936668708 +0100
345 const nv_alloc_ops_t spl_sleep_ops_def = {
346 - NULL, /* nv_ao_init() */
347 - NULL, /* nv_ao_fini() */
348 - nv_alloc_sleep_spl, /* nv_ao_alloc() */
349 - nv_free_spl, /* nv_ao_free() */
350 - NULL /* nv_ao_reset() */
351 + .nv_ao_alloc = nv_alloc_sleep_spl, /* nv_ao_alloc() */
352 + .nv_ao_free = nv_free_spl, /* nv_ao_free() */
355 const nv_alloc_ops_t spl_pushpage_ops_def = {
356 - NULL, /* nv_ao_init() */
357 - NULL, /* nv_ao_fini() */
358 - nv_alloc_pushpage_spl, /* nv_ao_alloc() */
359 - nv_free_spl, /* nv_ao_free() */
360 - NULL /* nv_ao_reset() */
361 + .nv_ao_alloc = nv_alloc_pushpage_spl, /* nv_ao_alloc() */
362 + .nv_ao_free = nv_free_spl, /* nv_ao_free() */
365 const nv_alloc_ops_t spl_nosleep_ops_def = {
366 - NULL, /* nv_ao_init() */
367 - NULL, /* nv_ao_fini() */
368 - nv_alloc_nosleep_spl, /* nv_ao_alloc() */
369 - nv_free_spl, /* nv_ao_free() */
370 - NULL /* nv_ao_reset() */
371 + .nv_ao_alloc = nv_alloc_nosleep_spl, /* nv_ao_alloc() */
372 + .nv_ao_free = nv_free_spl, /* nv_ao_free() */
375 nv_alloc_t nv_alloc_sleep_def = {
376 - &spl_sleep_ops_def,
378 + .nva_ops = &spl_sleep_ops_def,
381 nv_alloc_t nv_alloc_pushpage_def = {
382 - &spl_pushpage_ops_def,
384 + .nva_ops = &spl_pushpage_ops_def,
387 nv_alloc_t nv_alloc_nosleep_def = {
388 - &spl_nosleep_ops_def,
390 + .nva_ops = &spl_nosleep_ops_def,
393 nv_alloc_t *nv_alloc_sleep = &nv_alloc_sleep_def;
394 diff -ur -x Makefile.in zfs-0.7.3/module/nvpair/nvpair.c zfs-0.7.3-randstruct/module/nvpair/nvpair.c
395 --- zfs-0.7.3/module/nvpair/nvpair.c 2017-10-18 23:47:55.000000000 +0200
396 +++ zfs-0.7.3-randstruct/module/nvpair/nvpair.c 2017-11-18 13:36:35.657744967 +0100
397 @@ -2801,11 +2801,11 @@
400 static const nvs_ops_t nvs_native_ops = {
404 - nvs_native_nvp_size,
405 - nvs_native_nvl_fini
406 + .nvs_nvlist = nvs_native_nvlist,
407 + .nvs_nvpair = nvs_native_nvpair,
408 + .nvs_nvp_op = nvs_native_nvp_op,
409 + .nvs_nvp_size = nvs_native_nvp_size,
410 + .nvs_nvl_fini = nvs_native_nvl_fini
414 @@ -3288,11 +3288,11 @@
417 static const struct nvs_ops nvs_xdr_ops = {
423 + .nvs_nvlist = nvs_xdr_nvlist,
424 + .nvs_nvpair = nvs_xdr_nvpair,
425 + .nvs_nvp_op = nvs_xdr_nvp_op,
426 + .nvs_nvp_size = nvs_xdr_nvp_size,
427 + .nvs_nvl_fini = nvs_xdr_nvl_fini
431 diff -ur -x Makefile.in zfs-0.7.3/module/zfs/fm.c zfs-0.7.3-randstruct/module/zfs/fm.c
432 --- zfs-0.7.3/module/zfs/fm.c 2017-10-18 23:47:55.000000000 +0200
433 +++ zfs-0.7.3-randstruct/module/zfs/fm.c 2017-11-18 15:00:16.140450509 +0100
437 const nv_alloc_ops_t fm_mem_alloc_ops = {
443 + .nv_ao_alloc = i_fm_alloc,
444 + .nv_ao_free = i_fm_free,
448 diff -ur -x Makefile.in zfs-0.7.3/module/zfs/metaslab.c zfs-0.7.3-randstruct/module/zfs/metaslab.c
449 --- zfs-0.7.3/module/zfs/metaslab.c 2017-10-18 23:47:55.000000000 +0200
450 +++ zfs-0.7.3-randstruct/module/zfs/metaslab.c 2017-11-18 15:02:58.668193558 +0100
451 @@ -1049,11 +1049,11 @@
454 static range_tree_ops_t metaslab_rt_ops = {
455 - metaslab_rt_create,
456 - metaslab_rt_destroy,
458 - metaslab_rt_remove,
460 + .rtop_create = metaslab_rt_create,
461 + .rtop_destroy = metaslab_rt_destroy,
462 + .rtop_add = metaslab_rt_add,
463 + .rtop_remove = metaslab_rt_remove,
464 + .rtop_vacate = metaslab_rt_vacate
468 diff -ur -x Makefile.in zfs-0.7.3/module/zfs/vdev_mirror.c zfs-0.7.3-randstruct/module/zfs/vdev_mirror.c
469 --- zfs-0.7.3/module/zfs/vdev_mirror.c 2017-10-18 23:47:55.000000000 +0200
470 +++ zfs-0.7.3-randstruct/module/zfs/vdev_mirror.c 2017-11-18 15:07:03.201488373 +0100
474 static const zio_vsd_ops_t vdev_mirror_vsd_ops = {
475 - vdev_mirror_map_free,
476 - zio_vsd_default_cksum_report
477 + .vsd_free = vdev_mirror_map_free,
478 + .vsd_cksum_report = zio_vsd_default_cksum_report
482 diff -ur -x Makefile.in zfs-0.7.3/module/zfs/vdev_raidz.c zfs-0.7.3-randstruct/module/zfs/vdev_raidz.c
483 --- zfs-0.7.3/module/zfs/vdev_raidz.c 2017-10-18 23:47:55.000000000 +0200
484 +++ zfs-0.7.3-randstruct/module/zfs/vdev_raidz.c 2017-11-18 15:08:11.920011894 +0100
488 static const zio_vsd_ops_t vdev_raidz_vsd_ops = {
489 - vdev_raidz_map_free_vsd,
490 - vdev_raidz_cksum_report
491 + .vsd_free = vdev_raidz_map_free_vsd,
492 + .vsd_cksum_report = vdev_raidz_cksum_report
496 diff -ur -x Makefile.in zfs-0.7.3/module/zfs/zfs_acl.c zfs-0.7.3-randstruct/module/zfs/zfs_acl.c
497 --- zfs-0.7.3/module/zfs/zfs_acl.c 2017-10-18 23:47:55.000000000 +0200
498 +++ zfs-0.7.3-randstruct/module/zfs/zfs_acl.c 2017-11-18 15:12:28.276899635 +0100
499 @@ -174,18 +174,18 @@
502 static acl_ops_t zfs_acl_v0_ops = {
503 - zfs_ace_v0_get_mask,
504 - zfs_ace_v0_set_mask,
505 - zfs_ace_v0_get_flags,
506 - zfs_ace_v0_set_flags,
507 - zfs_ace_v0_get_type,
508 - zfs_ace_v0_set_type,
509 - zfs_ace_v0_get_who,
510 - zfs_ace_v0_set_who,
512 - zfs_ace_v0_abstract_size,
513 - zfs_ace_v0_mask_off,
515 + .ace_mask_get = zfs_ace_v0_get_mask,
516 + .ace_mask_set = zfs_ace_v0_set_mask,
517 + .ace_flags_get = zfs_ace_v0_get_flags,
518 + .ace_flags_set = zfs_ace_v0_set_flags,
519 + .ace_type_get = zfs_ace_v0_get_type,
520 + .ace_type_set = zfs_ace_v0_set_type,
521 + .ace_who_get = zfs_ace_v0_get_who,
522 + .ace_who_set = zfs_ace_v0_set_who,
523 + .ace_size = zfs_ace_v0_size,
524 + .ace_abstract_size = zfs_ace_v0_abstract_size,
525 + .ace_mask_off = zfs_ace_v0_mask_off,
526 + .ace_data = zfs_ace_v0_data
530 @@ -310,18 +310,18 @@
533 static acl_ops_t zfs_acl_fuid_ops = {
534 - zfs_ace_fuid_get_mask,
535 - zfs_ace_fuid_set_mask,
536 - zfs_ace_fuid_get_flags,
537 - zfs_ace_fuid_set_flags,
538 - zfs_ace_fuid_get_type,
539 - zfs_ace_fuid_set_type,
540 - zfs_ace_fuid_get_who,
541 - zfs_ace_fuid_set_who,
543 - zfs_ace_fuid_abstract_size,
544 - zfs_ace_fuid_mask_off,
546 + .ace_mask_get = zfs_ace_fuid_get_mask,
547 + .ace_mask_set = zfs_ace_fuid_set_mask,
548 + .ace_flags_get = zfs_ace_fuid_get_flags,
549 + .ace_flags_set = zfs_ace_fuid_set_flags,
550 + .ace_type_get = zfs_ace_fuid_get_type,
551 + .ace_type_set = zfs_ace_fuid_set_type,
552 + .ace_who_get = zfs_ace_fuid_get_who,
553 + .ace_who_set = zfs_ace_fuid_set_who,
554 + .ace_size = zfs_ace_fuid_size,
555 + .ace_abstract_size = zfs_ace_fuid_abstract_size,
556 + .ace_mask_off = zfs_ace_fuid_mask_off,
557 + .ace_data = zfs_ace_fuid_data