/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zpool_upgrade/ |
H A D | create_upgrade_pool_dat.sh | 32 poolname=v${version}-pool 38 zpool create ${zpool_opts} ${poolname} ${dat} 39 zpool export ${poolname}
|
/freebsd-12-stable/contrib/ipfilter/tools/ |
H A D | ippool.c | 138 char *poolname = NULL; local 160 poolname = optarg; 229 if (poolname == NULL) { 230 fprintf(stderr, "poolname not given with add/remove node\n"); 237 err = load_poolnode(role, poolname, &pnode, ttl, ioctl); 239 err = remove_poolnode(role, poolname, &pnode, ioctl); 243 err = load_hashnode(role, poolname, &hnode, ttl, ioctl); 245 err = remove_hashnode(role, poolname, &hnode, ioctl); 260 char *poolname, *typearg = NULL; local 267 poolname 692 char *kernel, *core, *poolname; local [all...] |
H A D | ippool_y.y | 49 static char poolname[FR_GROUPLEN]; 221 number: IPT_NUM '=' YY_NUMBER { sprintf(poolname, "%u", $3); 222 $$ = poolname; 224 | IPT_NAME '=' YY_STR { strncpy(poolname, $3, 226 poolname[FR_GROUPLEN-1]='\0'; 228 $$ = poolname;
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/xattr/ |
H A D | xattr_012_pos.ksh | 63 poolname=$1 64 psize=$( $ZPOOL list -H -o used $poolname )
|
/freebsd-12-stable/tests/sys/cddl/zfs/tests/zinject/ |
H A D | zinject.kshlib | 49 # otherwise, $2 should be poolname 170 function check_status #poolname, errors 172 typeset poolname=$1 176 ereport=$($ZPOOL status -v $poolname | $GREP "$err") 178 $ZPOOL status -v $poolname
|
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zinject/ |
H A D | zinject.h | 58 int level, zinject_record_t *record, char *poolname, char *dataset);
|
H A D | translate.c | 316 int level, zinject_record_t *record, char *poolname, char *dataset) 358 (void) strcpy(poolname, object); 398 (void) strcpy(poolname, dataset); 399 if ((slash = strchr(poolname, '/')) != NULL) 315 translate_record(err_type_t type, const char *object, const char *range, int level, zinject_record_t *record, char *poolname, char *dataset) argument
|
/freebsd-12-stable/cddl/usr.sbin/zfsd/ |
H A D | zfsd.cc | 231 const char *poolname; local 233 poolname = zpool_get_name(*pool); 237 "find pool config for pool %s", poolname); 243 "find pool guid for pool %s", poolname); 250 "pool_name=%s pool_guid=%" PRIu64 "\n", poolname, poolGUID);
|
H A D | case_file.cc | 493 const char *poolname; local 504 poolname = zpool_get_name(zhp); 508 "config for pool %s", poolname); 514 "tree for pool %s", poolname); 539 "No spares available for pool %s", poolname); 551 poolname, i); 572 poolname, i, error); 580 poolname, i, error); 1055 const char *poolname; local 1067 poolname [all...] |
/freebsd-12-stable/stand/libsa/zfs/ |
H A D | zfs.c | 734 static char poolname[ZFS_MAXNAMELEN]; local 751 memcpy(poolname, np, sep - np); 752 poolname[sep - np] = '\0'; 761 spa = spa_find_by_name(poolname); 820 static char poolname[ZFS_MAXNAMELEN]; local 834 memcpy(poolname, name, len); 835 poolname[len] = '\0'; 837 spa = spa_find_by_name(poolname); 879 char poolname[ZFS_MAXNAMELEN], *dsname; local 894 strlcpy(poolname, nam 930 static char poolname[ZFS_MAXNAMELEN], *dsname, *root; local [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_config.c | 352 zpool_skip_pool(const char *poolname) argument 360 int namelen = strlen(poolname); 373 if (len == namelen && 0 == strncmp(cur, poolname, len)) 387 if (len == namelen && 0 == strncmp(cur, poolname, len)) {
|
H A D | libzfs_import.c | 1226 * poolname or guid (but not both) are provided by the caller when trying 1389 if (iarg->poolname != NULL) { 1395 strcmp(iarg->poolname, pname) == 0; 1466 * poolname or guid (but not both) are provided by the caller when trying 1471 char *poolname, uint64_t guid) 1483 verify(poolname == NULL || guid == 0); 1541 if (poolname != NULL && strcmp(poolname, name) != 0) 1591 if (import->poolname != NULL) { 1596 if (strcmp(pool_name, import->poolname) 1470 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, char *poolname, uint64_t guid) argument [all...] |
H A D | libzfs_pool.c | 429 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument 554 if (strval[0] != '\0' && !bootfs_name_valid(poolname, 562 if ((zhp = zpool_open_canfail(hdl, poolname)) == NULL) { 564 "could not open pool '%s'"), poolname); 4550 char poolname[ZFS_MAX_DATASET_NAME_LEN]; local 4579 (void) strncpy(poolname, volname, p - volname); 4580 poolname[p - volname] = '\0'; 4583 if ((zhp = zpool_open(hdl, poolname)) == NULL) { 4585 "could not open pool '%s'"), poolname); 4593 "could not obtain vdev configuration for '%s'"), poolname); [all...] |
H A D | libzfs.h | 408 char *poolname; /* name of a pool to find */ member in struct:importargs 412 int unique : 1; /* does 'poolname' already exist? */
|
H A D | libzfs_dataset.c | 2503 char *poolname = zhp->zpool_hdl->zpool_name; local 2517 error = lzc_channel_program_nosync(poolname, program,
|
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zcp.c | 961 zcp_pool_error(zcp_run_info_t *ri, const char *poolname) argument 966 poolname); 1003 zcp_eval_open(zcp_run_info_t *ri, const char *poolname) argument 1014 error = dsl_pool_hold(poolname, FTAG, &dp); 1016 zcp_pool_error(ri, poolname); 1039 zcp_eval(const char *poolname, const char *program, boolean_t sync, argument 1157 err = dsl_sync_task_sig(poolname, NULL, zcp_eval_sync, 1160 zcp_pool_error(&runinfo, poolname); 1162 zcp_eval_open(&runinfo, poolname);
|
H A D | zfs_ioctl.c | 3483 zfs_ioc_snapshot(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument 3492 zfs_earlier_version(poolname, SPA_VERSION_SNAP_PROPS)) 3499 poollen = strlen(poolname); 3516 if (strncmp(name, poolname, poollen) != 0 || 3556 char *poolname; local 3559 * The poolname in the ioctl is not set, we get it from the TSD, 3565 poolname = tsd_get(zfs_allow_log_key); 3567 error = spa_open(poolname, &spa, FTAG); 3568 strfree(poolname); 3726 zfs_ioc_destroy_snaps(const char *poolname, nvlist_ argument 3769 zfs_ioc_bookmark(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument 3819 zfs_ioc_destroy_bookmarks(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument 3851 zfs_ioc_channel_program(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument 3890 zfs_ioc_pool_checkpoint(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument 3901 zfs_ioc_pool_discard_checkpoint(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument 3959 zfs_ioc_pool_initialize(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument 7147 char *poolname = arg; local [all...] |
H A D | spa.c | 5138 char *poolname; local 5143 zpool_prop_to_name(ZPOOL_PROP_TNAME), &poolname) != 0) 5144 poolname = (char *)pool; 5150 if (spa_lookup(poolname) != NULL) { 5162 spa = spa_add(poolname, nvl, altroot); 5176 if (poolname != pool) 6010 char *poolname, *cachefile; local 6016 if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_POOL_NAME, &poolname)) 6037 poolname, (longlong_t)policy.zlp_txg); 6039 zfs_dbgmsg("spa_tryimport: importing %s", poolname); [all...] |
H A D | zfs_vfsops.c | 1683 * "poolname/root-dataset-objnum". 1773 getpoolname(const char *osname, char *poolname) argument 1781 (void) strcpy(poolname, osname); 1785 (void) strncpy(poolname, osname, p - osname); 1786 poolname[p - osname] = '\0';
|
/freebsd-12-stable/lib/libbe/ |
H A D | be.c | 112 char *poolname, *pos; local 116 poolname = pos = NULL; 147 poolname = malloc(pnamelen + 1); 148 if (poolname == NULL) 151 strlcpy(poolname, lbh->root, pnamelen + 1); 152 if ((lbh->active_phandle = zpool_open(lbh->lzh, poolname)) == NULL) 154 free(poolname); 155 poolname = NULL; 175 free(poolname);
|
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_main.c | 559 char *poolname; local 604 poolname = argv[0]; 609 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 614 poolname); 643 print_vdev_tree(zhp, poolname, poolnvroot, 0, "", 682 char *poolname; local 718 poolname = argv[0]; 720 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) 953 char *poolname; local 1113 poolname 3874 char *poolname, *old_disk, *new_disk; local 4008 char *poolname, *path; local 4210 char *poolname; local 4288 char *poolname; local 4429 char *poolname; local 4658 char *poolname; local 5640 static char *poolname = NULL; local 5662 root_pool_upgrade_check(zpool_handle_t *zhp, char *poolname, int size) argument [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 1151 lzc_initialize(const char *poolname, pool_initialize_func_t cmd_type, argument 1159 error = lzc_ioctl(ZFS_IOC_POOL_INITIALIZE, poolname, args, errlist);
|
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zdb/ |
H A D | zdb.c | 141 "\t\t[<poolname> [<object> ...]]\n" 147 "[-U <cache>]\n\t\t<poolname> [<vdev> [<metaslab> ...]]\n" 150 "\t\t<poolname> <vdev>:<offset>:<size>[:<flags>]\n" 153 "<poolname>\n\n", 4343 char *poolname, *bogus_name; local 4349 poolname = strndup(target, poolname_len); 4351 poolname = target; 4355 zdb_set_skip_mmp(poolname); 4356 error = spa_get_stats(poolname, &cfg, NULL, 0); 4360 poolname, erro [all...] |
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/zfs/ |
H A D | zfs_main.c | 7278 char *progbuf, *filename, *poolname; local 7350 poolname = argv[0]; 7361 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) { 7363 poolname); 7406 ret = lzc_channel_program(poolname, progbuf, 7409 ret = lzc_channel_program_nosync(poolname, progbuf,
|
/freebsd-12-stable/sys/cddl/contrib/opensolaris/common/zfs/ |
H A D | zfs_ioctl_compat.c | 1194 char *poolname, *snapname;
|