Lines Matching defs:type

424 	char *type = NULL;
467 * Determine what type of vdev this is, and put the full path into
473 * Complete device or file path. Exact type is determined by
520 type = VDEV_TYPE_DISK;
522 type = VDEV_TYPE_FILE;
536 verify(nvlist_add_string(vdev, ZPOOL_CONFIG_TYPE, type) == 0);
538 if (strcmp(type, VDEV_TYPE_DISK) == 0)
657 const char *type;
671 type = NULL;
716 if (!reported && type != NULL && strcmp(type, childtype) != 0) {
724 type = childtype;
867 char *type;
889 &type) == 0);
890 rep.zprl_type = type;
902 if (strcmp(type, VDEV_TYPE_RAIDZ) == 0) {
1004 char *type, *path, *diskname;
1013 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0);
1018 if (strcmp(type, VDEV_TYPE_DISK) != 0)
1163 char *type, *path;
1166 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0);
1198 if (strcmp(type, VDEV_TYPE_DISK) == 0)
1201 if (strcmp(type, VDEV_TYPE_FILE) == 0)
1232 is_grouping(const char *type, int *mindev, int *maxdev)
1234 if (strncmp(type, "raidz", 5) == 0) {
1235 const char *p = type + 5;
1261 if (strcmp(type, "mirror") == 0) {
1267 if (strcmp(type, "spare") == 0) {
1273 if (strcmp(type, "log") == 0) {
1279 if (strcmp(type, "cache") == 0) {
1299 const char *type;
1323 if ((type = is_grouping(vdevlist[0], &mindev, &maxdev))
1328 if (strcmp(type, VDEV_TYPE_SPARE) == 0) {
1337 if (strcmp(type, VDEV_TYPE_LOG) == 0) {
1354 if (strcmp(type, VDEV_TYPE_L2CACHE) == 0) {
1364 if (strcmp(type, VDEV_TYPE_MIRROR) != 0) {
1367 msg, VDEV_TYPE_LOG, type);
1415 if (strcmp(type, VDEV_TYPE_SPARE) == 0) {
1419 } else if (strcmp(type, VDEV_TYPE_L2CACHE) == 0) {
1427 type) == 0);
1430 if (strcmp(type, VDEV_TYPE_RAIDZ) == 0) {
1536 const char *type;
1541 if ((type = is_grouping(path, &min, &max)) != NULL) {
1545 type);