Lines Matching defs:type
535 * Make sure this property is valid and applies to this type.
1974 char *type, *idx, *end, *p;
1978 * Determine our vdev type, keeping in mind
1979 * that the srchval is composed of a type and
1982 if ((type = strdup(srchval)) == NULL)
1985 if ((p = strrchr(type, '-')) == NULL) {
1986 free(type);
1995 if (strncmp(val, type, strlen(val)) != 0) {
1996 free(type);
2000 verify(strncmp(type, VDEV_TYPE_RAIDZ,
2002 strncmp(type, VDEV_TYPE_MIRROR,
2010 free(type);
2260 char *type;
2263 if (nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) != 0)
2266 if (strcmp(type, VDEV_TYPE_DISK) == 0) {
2285 } else if (strcmp(type, VDEV_TYPE_MIRROR) == 0 ||
2286 strcmp(type, VDEV_TYPE_REPLACING) == 0 ||
2287 (is_spare = (strcmp(type, VDEV_TYPE_SPARE) == 0))) {
2319 char *type;
2328 if (nvlist_lookup_string(vdev_root, ZPOOL_CONFIG_TYPE, &type) != 0 ||
2337 if (strcmp(type, VDEV_TYPE_ROOT) != 0 || count != 1 ||
2597 char *type;
2602 &type) == 0);
2604 if (strcmp(type, VDEV_TYPE_SPARE) == 0 &&
2753 * Can't attach to or replace this type of vdev.
2859 * Can't detach from this type of vdev.
2981 char *type;
3012 verify(nvlist_lookup_string(child[c], ZPOOL_CONFIG_TYPE, &type)
3014 if (strcmp(type, VDEV_TYPE_MIRROR) != 0) {
3334 * type 'zpool status', and we'll display the correct information anyway.
3351 * we use that, stripping off any leading "/dev/dsk/"; if not, we use the type.
3495 * We identify each top-level vdev by using a <type-id>