Example #1
0
/*
 * 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));
}
Example #2
0
/*
 * 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));
}
Example #3
0
/*
 * 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));
}