Print this page
4185 New hash algorithm support

@@ -69,10 +69,13 @@
                 { "off",        ZIO_CHECKSUM_OFF },
                 { "fletcher2",  ZIO_CHECKSUM_FLETCHER_2 },
                 { "fletcher4",  ZIO_CHECKSUM_FLETCHER_4 },
                 { "sha256",     ZIO_CHECKSUM_SHA256 },
                 { "noparity",   ZIO_CHECKSUM_NOPARITY },
+                { "sha512",     ZIO_CHECKSUM_SHA512 },
+                { "skein",      ZIO_CHECKSUM_SKEIN },
+                { "edonr",      ZIO_CHECKSUM_EDONR },
                 { NULL }
         };
 
         static zprop_index_t dedup_table[] = {
                 { "on",         ZIO_CHECKSUM_ON },

@@ -79,10 +82,19 @@
                 { "off",        ZIO_CHECKSUM_OFF },
                 { "verify",     ZIO_CHECKSUM_ON | ZIO_CHECKSUM_VERIFY },
                 { "sha256",     ZIO_CHECKSUM_SHA256 },
                 { "sha256,verify",
                                 ZIO_CHECKSUM_SHA256 | ZIO_CHECKSUM_VERIFY },
+                { "sha512",     ZIO_CHECKSUM_SHA512 },
+                { "sha512,verify",
+                                ZIO_CHECKSUM_SHA512 | ZIO_CHECKSUM_VERIFY },
+                { "skein",      ZIO_CHECKSUM_SKEIN },
+                { "skein,verify",
+                                ZIO_CHECKSUM_SKEIN | ZIO_CHECKSUM_VERIFY },
+                { "edonr",      ZIO_CHECKSUM_EDONR },
+                { "edonr,verify",
+                                ZIO_CHECKSUM_EDONR | ZIO_CHECKSUM_VERIFY },
                 { NULL }
         };
 
         static zprop_index_t compress_table[] = {
                 { "on",         ZIO_COMPRESS_ON },

@@ -204,16 +216,16 @@
             "standard | always | disabled", "SYNC",
             sync_table);
         zprop_register_index(ZFS_PROP_CHECKSUM, "checksum",
             ZIO_CHECKSUM_DEFAULT, PROP_INHERIT, ZFS_TYPE_FILESYSTEM |
             ZFS_TYPE_VOLUME,
-            "on | off | fletcher2 | fletcher4 | sha256", "CHECKSUM",
-            checksum_table);
+            "on | off | fletcher2 | fletcher4 | sha256 | sha512 | "
+            "skein | edonr", "CHECKSUM", checksum_table);
         zprop_register_index(ZFS_PROP_DEDUP, "dedup", ZIO_CHECKSUM_OFF,
             PROP_INHERIT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
-            "on | off | verify | sha256[,verify]", "DEDUP",
-            dedup_table);
+            "on | off | verify | sha256[,verify], sha512[,verify], "
+            "skein[,verify], edonr[,verify]", "DEDUP", dedup_table);
         zprop_register_index(ZFS_PROP_COMPRESSION, "compression",
             ZIO_COMPRESS_DEFAULT, PROP_INHERIT,
             ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
             "on | off | lzjb | gzip | gzip-[1-9] | zle | lz4",
             "COMPRESS", compress_table);