Lines Matching defs:type

70  * Given a single type (not a mask of types), return the type in a human
74 zfs_type_to_name(zfs_type_t type)
76 switch (type) {
96 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type,
170 if (!(type & ZFS_TYPE_SNAPSHOT) && (cp = strchr(path, '@')) != NULL &&
171 (!(type & ZFS_TYPE_SHARE) ||
179 if (type == ZFS_TYPE_SNAPSHOT && strchr(path, '@') == NULL) {
186 if (!(type & ZFS_TYPE_SHARE) && modifying &&
194 if (type == ZFS_TYPE_SHARE && strchr(path, '%') == NULL) {
205 zfs_name_valid(const char *name, zfs_type_t type)
207 if (type == ZFS_TYPE_POOL)
209 return (zfs_validate_name(NULL, name, type, B_FALSE));
312 get_stats_ioctl(zfs_handle_t *zhp, zfs_cmd_t *zc, zfs_type_t type)
315 int ioc = (type == ZFS_TYPE_SHARE ? ZFS_IOC_SHARE_STATS :
437 * the high-level type.
464 make_handle_impl(libzfs_handle_t *hdl, const char *path, zfs_type_t type)
479 if (get_stats_ioctl(zhp, &zc, type) == -1) {
923 zfs_prepare_valid_proplist(libzfs_handle_t *hdl, zfs_type_t type, nvlist_t *nvl,
942 * Make sure this property is valid and applies to this dataset type.
1021 if (type == ZFS_TYPE_SNAPSHOT) {
1108 if (!zprop_valid_for_type(zpd, type)) {
1110 "'%s' does not apply to datasets of this type"),
1205 if (zprop_parse_value(hdl, elem, prop, type, ret,
1842 if (type == ZFS_TYPE_VOLUME && zhp != NULL) {
1894 } else if (type != ZFS_TYPE_SHARE) {
1994 zfs_setprop_error(libzfs_handle_t *hdl, zfs_type_t type,
2028 (void) zfs_standard_error(hdl, NULL, type, err, errbuf);
2034 (void) zfs_standard_error(hdl, NULL, type, EBUSY, errbuf);
2057 (void) zfs_standard_error(hdl, NULL, type, err, errbuf);
2065 (void) zfs_standard_error(hdl, NULL, type, err, errbuf);
2081 (void) zfs_standard_error(hdl, NULL, type, err, errbuf);
2385 * Check to see if the value applies to this type
2527 * is invalid, or the value is invalid for the property type; and ENOMEM if
2535 zprop_type_t type;
2544 type = PROP_TYPE_STRING;
2548 type = zprop_type(zpd);
2568 if (type == PROP_TYPE_STRING) {
3001 * Calculate the source type, given the raw source string.
3166 * src - where the source type will be returned (can be NULL)
3756 * sense to introduce a new property type in the common
4080 * the given property is the appropriate type; should only be used with
4178 zfs_userquota_prop_t type;
4185 /* Figure out the property type ({user|group}{quota|space}) */
4186 for (type = 0; type < ZFS_NUM_USERQUOTA_PROPS; type++) {
4187 if (strncmp(propname, zfs_userquota_prop_prefixes[type],
4188 strlen(zfs_userquota_prop_prefixes[type])) == 0)
4191 if (type == ZFS_NUM_USERQUOTA_PROPS)
4193 *typep = type;
4195 isuser = (type == ZFS_PROP_USERQUOTA ||
4196 type == ZFS_PROP_USERUSED);
4331 zfs_userquota_prop_t type;
4334 &type));
4343 zfs_userquota_prop_t type;
4346 &type);
4354 (type == ZFS_PROP_USERQUOTA || type == ZFS_PROP_GROUPQUOTA)) {
4372 * Returns the type of the given zfs handle.
4747 * Finds whether the dataset of the given type(s) exists.
4877 zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type,
4891 if (!zfs_validate_name(hdl, path, type, B_TRUE))
4899 * The failure modes when creating a dataset of a different type over
4912 if (type == ZFS_TYPE_VOLUME)
4929 props = zfs_prepare_valid_proplist(hdl, type, props, zoned,
4936 if (type == ZFS_TYPE_VOLUME) {
5035 if (type == ZFS_TYPE_VOLUME)
5041 return (zfs_standard_error(hdl, path, type,
5196 * Clones the given dataset. The target must be of the same type as the source.
5206 zfs_type_t type;
5227 type = ZFS_TYPE_VOLUME;
5230 type = ZFS_TYPE_FILESYSTEM;
5237 props = zfs_prepare_valid_proplist(hdl, type, props, zoned,
5383 /* make sure the parent exists and is of the appropriate type */
5591 zfs_type_t type = zfs_is_share_name(dependents[i]) ?
5595 dependents[i], type)) == NULL)
6317 * existence of the dataset and verification of the type. This
6549 zfs_userspace(zfs_handle_t *zhp, zfs_userquota_prop_t type,
6558 zc.zc_objset_type = type;