Print this page
4185 New hash algorithm support

@@ -20,10 +20,11 @@
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2013 by Delphix. All rights reserved.
  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2013 Saso Kiselkov. All rights reserved.
  */
 
 #ifndef _SYS_SPA_IMPL_H
 #define _SYS_SPA_IMPL_H
 

@@ -155,10 +156,15 @@
         uint64_t        spa_config_object;      /* MOS object for pool config */
         uint64_t        spa_config_generation;  /* config generation number */
         uint64_t        spa_syncing_txg;        /* txg currently syncing */
         bpobj_t         spa_deferred_bpobj;     /* deferred-free bplist */
         bplist_t        spa_free_bplist[TXG_SIZE]; /* bplist of stuff to free */
+        zio_cksum_salt_t spa_cksum_salt;        /* secret salt for cksum */
+        uint64_t        spa_cksum_salt_obj;     /* persistent salt object */
+        /* checksum context templates */
+        kmutex_t        spa_cksum_tmpls_lock;
+        void            *spa_cksum_tmpls[ZIO_CHECKSUM_FUNCTIONS];
         uberblock_t     spa_ubsync;             /* last synced uberblock */
         uberblock_t     spa_uberblock;          /* current uberblock */
         boolean_t       spa_extreme_rewind;     /* rewind past deferred frees */
         uint64_t        spa_last_io;            /* lbolt of last non-scan I/O */
         kmutex_t        spa_scrub_lock;         /* resilver/scrub lock */