Lines Matching refs:target
3490 find_zpool(char **target, nvlist_t **configp, int dirc, char **dirv)
3504 if ((sepp = strpbrk(*target, "/@")) != NULL) {
3515 if (pool_match(*configp, *target)) {
3544 if (name && (strstr(*target, name) != *target)) {
3547 *target = umem_alloc(sz, UMEM_NOFAIL);
3548 (void) snprintf(*target, sz, "%s%s", name, sepp ? sepp : "");
3568 char *target;
3738 target = argv[0];
3742 char *name = find_zpool(&target, &cfg, nsearch, searchdirs);
3753 target, strerror(ENOMEM));
3763 if (strpbrk(target, "/@") != NULL) {
3773 targetlen = strlen(target);
3774 if (targetlen != 0 && target[targetlen - 1] == '/')
3775 target[targetlen - 1] = '\0';
3780 error = spa_open_rewind(target, &spa, FTAG, policy,
3789 if ((spa = spa_lookup(target)) != NULL &&
3797 error = spa_open_rewind(target, &spa,
3802 error = dmu_objset_own(target, DMU_OST_ANY,
3809 fatal("can't open '%s': %s", target, strerror(error));