/* * Given a property name and its type, returns the corresponding property ID. */ zpool_prop_t zpool_name_to_prop(const char *propname) { return (zprop_name_to_prop(propname, ZFS_TYPE_POOL)); }
/* * Given a zfs dataset property name, returns the corresponding property ID. */ zfs_prop_t zfs_name_to_prop(const char *propname) { return (zprop_name_to_prop(propname, ZFS_TYPE_DATASET)); }
/* * Given a property name and its type, returns the corresponding property ID. */ cos_prop_t cos_name_to_prop(const char *propname) { return (zprop_name_to_prop(propname, ZFS_TYPE_COS)); }