]> git.proxmox.com Git - mirror_zfs.git/blobdiff - include/zfeature_common.h
Add zfs module feature and property info to sysfs
[mirror_zfs.git] / include / zfeature_common.h
index c5aabce0e3793e4d4ecd918f6bb7c6f8fc41cf9e..8d31309e87ba8fd810e4bad2232ed08b26757dd9 100644 (file)
@@ -85,6 +85,7 @@ typedef struct zfeature_info {
        const char *fi_guid;    /* On-disk feature identifier */
        const char *fi_desc;    /* Feature description */
        zfeature_flags_t fi_flags;
+       boolean_t fi_zfs_mod_supported; /* supported by running zfs module */
        /* array of dependencies, terminated by SPA_FEATURE_NONE */
        const spa_feature_t *fi_depends;
 } zfeature_info_t;
@@ -98,6 +99,7 @@ extern zfeature_info_t spa_feature_table[SPA_FEATURES];
 extern boolean_t zfeature_is_valid_guid(const char *);
 
 extern boolean_t zfeature_is_supported(const char *);
+extern int zfeature_lookup_guid(const char *, spa_feature_t *);
 extern int zfeature_lookup_name(const char *, spa_feature_t *);
 extern boolean_t zfeature_depends_on(spa_feature_t, spa_feature_t);