]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zcommon/zfeature_common.c
Pool allocation classes
[mirror_zfs.git] / module / zcommon / zfeature_common.c
index e2b0fd511a3cc8c20b4f30ef943810fafee0d29e..c86f98ac264fd77723b8d09fc7b496e9fc2105b1 100644 (file)
  */
 
 /*
- * Copyright (c) 2011, 2017 by Delphix. All rights reserved.
+ * Copyright (c) 2011, 2018 by Delphix. All rights reserved.
  * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
  * Copyright (c) 2013, Joyent, Inc. All rights reserved.
  * Copyright (c) 2014, Nexenta Systems, Inc. All rights reserved.
+ * Copyright (c) 2017, Intel Corporation.
  */
 
 #ifndef _KERNEL
@@ -408,6 +409,13 @@ zpool_feature_init(void)
            ZFEATURE_FLAG_READONLY_COMPAT | ZFEATURE_FLAG_PER_DATASET,
            project_quota_deps);
        }
+
+       {
+       zfeature_register(SPA_FEATURE_ALLOCATION_CLASSES,
+           "org.zfsonlinux:allocation_classes", "allocation_classes",
+           "Support for separate allocation classes.",
+           ZFEATURE_FLAG_READONLY_COMPAT, NULL);
+       }
 }
 
 #if defined(_KERNEL)