From e1ff809d1a348259298de89c51cf8e8a2ba9db4a Mon Sep 17 00:00:00 2001
From: Nils Pascal Illenseer <ni@vm.ag>
Date: Mon, 30 Sep 2013 14:20:21 +0200
Subject: [PATCH] Add option 'lz4' for compression

---
 system/zfs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/system/zfs b/system/zfs
index a981f13e44e..c213234bc41 100644
--- a/system/zfs
+++ b/system/zfs
@@ -70,7 +70,7 @@ options:
     description:
       - The compression property.
     required: False
-    choices: ['on','off',lzjb,gzip,gzip-1,gzip-2,gzip-3,gzip-4,gzip-5,gzip-6,gzip-7,gzip-8,gzip-9]
+    choices: ['on','off',lzjb,gzip,gzip-1,gzip-2,gzip-3,gzip-4,gzip-5,gzip-6,gzip-7,gzip-8,gzip-9,lz4]
   copies:
     description:
       - The copies property.
@@ -338,7 +338,7 @@ def main():
             'canmount':        {'required': False, 'choices':['on', 'off', 'noauto']},
             'casesensitivity': {'required': False, 'choices':['sensitive', 'insensitive', 'mixed']},
             'checksum':        {'required': False, 'choices':['on', 'off', 'fletcher2', 'fletcher4', 'sha256']},
-            'compression':     {'required': False, 'choices':['on', 'off', 'lzjb', 'gzip', 'gzip-1', 'gzip-2', 'gzip-3', 'gzip-4', 'gzip-5', 'gzip-6', 'gzip-7', 'gzip-8', 'gzip-9']},
+            'compression':     {'required': False, 'choices':['on', 'off', 'lzjb', 'gzip', 'gzip-1', 'gzip-2', 'gzip-3', 'gzip-4', 'gzip-5', 'gzip-6', 'gzip-7', 'gzip-8', 'gzip-9', 'lz4']},
             'copies':          {'required': False, 'choices':['1', '2', '3']},
             'dedup':           {'required': False, 'choices':['on', 'off']},
             'devices':         {'required': False, 'choices':['on', 'off']},