Illumos #3035 LZ4 compression support in ZFS and GRUB
[zfs.git] / module / zcommon / zfs_prop.c
index 0a0c25b..6aa3838 100644 (file)
@@ -96,6 +96,7 @@ zfs_prop_init(void)
                { "gzip-8",     ZIO_COMPRESS_GZIP_8 },
                { "gzip-9",     ZIO_COMPRESS_GZIP_9 },
                { "zle",        ZIO_COMPRESS_ZLE },
+               { "lz4",        ZIO_COMPRESS_LZ4 },
                { NULL }
        };
 
@@ -211,7 +212,7 @@ zfs_prop_init(void)
        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", "COMPRESS",
+           "on | off | lzjb | gzip | gzip-[1-9] | zle | lz4", "COMPRESS",
            compress_table);
        zprop_register_index(ZFS_PROP_SNAPDIR, "snapdir", ZFS_SNAPDIR_HIDDEN,
            PROP_INHERIT, ZFS_TYPE_FILESYSTEM,