Lines Matching +refs:val +refs:top
149 * the pool is faulted, but if all we need is the top level
1958 char *srchval, *val;
1961 if (nvlist_lookup_string(nv, srchkey, &val) != 0)
1970 * - looking for a top-level vdev name (i.e. ZPOOL_CONFIG_TYPE).
1975 ctd_check_path(val)) {
1982 int vlen = strlen(val);
1998 if (strcmp(&val[vlen - 2], "s0") == 0 &&
1999 strncmp(srchval, val, slen) == 0)
2005 if (strcmp(&val[vlen - 6], "s0/old") == 0 &&
2007 strncmp(srchval, val, slen - 4) == 0)
2012 } else if (strcmp(srchkey, ZPOOL_CONFIG_TYPE) == 0 && val) {
2034 if (strncmp(val, type, strlen(val)) != 0) {
2063 if (strcmp(srchval, val) == 0)
2147 * Determine if we have an "interior" top-level vdev (i.e mirror/raidz).
2317 * root pool can only have a single top-level vdev.
2606 uint64_t val;
2653 nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_IS_SPARE, &val) == 0 &&
2706 "can only attach to mirrors and top-level "
2747 * The resulting top-level vdev spec won't fit in the label.
2818 * The mchild array contains a list of disks in one of the top-level mirrors
2957 /* find or add an entry for this top-level vdev */
3090 "only inactive hot spares, cache, top-level, "
3439 * We identify each top-level vdev by using a <type-id>
4018 nvlist_t **top;
4071 &top, &toplevels) == 0);
4073 if (!supported_dump_vdev_type(hdl, top[0], errbuf)) {