| /freebsd-12.1/contrib/ipfilter/tools/ |
| H A D | ippool.c | 138 char *poolname = NULL; local 160 poolname = optarg; 263 char *poolname; local 270 poolname = NULL; 283 poolname = optarg; 686 poolname = NULL; 696 poolname = optarg; 841 char *poolname; 955 char *poolname; 994 char *poolname; [all …]
|
| H A D | ippool_y.y | 49 static char poolname[FR_GROUPLEN]; variable 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.1/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.1/cddl/usr.sbin/zfsd/ |
| H A D | case_file.cc | 493 const char *poolname; in ActivateSpare() local 504 poolname = zpool_get_name(zhp); in ActivateSpare() 508 "config for pool %s", poolname); in ActivateSpare() 514 "tree for pool %s", poolname); in ActivateSpare() 539 "No spares available for pool %s", poolname); in ActivateSpare() 551 poolname, i); in ActivateSpare() 572 poolname, i, error); in ActivateSpare() 580 poolname, i, error); in ActivateSpare() 1055 const char *poolname; in Replace() local 1067 poolname = zpool_get_name(zhp); in Replace() [all …]
|
| H A D | zfsd.cc | 231 const char *poolname; in BuildCaseFiles() local 233 poolname = zpool_get_name(*pool); in BuildCaseFiles() 237 "find pool config for pool %s", poolname); in BuildCaseFiles() 243 "find pool guid for pool %s", poolname); in BuildCaseFiles() 250 "pool_name=%s pool_guid=%" PRIu64 "\n", poolname, poolGUID); in BuildCaseFiles()
|
| /freebsd-12.1/stand/libsa/zfs/ |
| H A D | zfs.c | 737 memcpy(poolname, np, sep - np); in zfs_parsedev() 738 poolname[sep - np] = '\0'; in zfs_parsedev() 747 spa = spa_find_by_name(poolname); in zfs_parsedev() 815 memcpy(poolname, name, len); in zfs_list() 816 poolname[len] = '\0'; in zfs_list() 818 spa = spa_find_by_name(poolname); in zfs_list() 875 strlcpy(poolname, name, len + 1); in zfs_bootenv_initial() 876 spa = spa_find_by_name(poolname); in zfs_bootenv_initial() 936 memcpy(poolname, name, len); in zfs_bootenv() 937 poolname[len] = '\0'; in zfs_bootenv() [all …]
|
| /freebsd-12.1/tests/sys/cddl/zfs/tests/zinject/ |
| H A D | zinject.kshlib | 172 typeset poolname=$1 176 ereport=$($ZPOOL status -v $poolname | $GREP "$err") 178 $ZPOOL status -v $poolname
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zpool/ |
| H A D | zpool_main.c | 530 char *poolname; in zpool_do_add() local 566 poolname = argv[0]; in zpool_do_add() 576 poolname); in zpool_do_add() 635 char *poolname; in zpool_do_remove() local 906 char *poolname; in zpool_do_create() local 1158 poolname); in zpool_do_create() 3610 poolname); in zpool_do_attach_or_replace() 3869 char *poolname; in zpool_do_online() local 3947 char *poolname; in zpool_do_offline() local 4088 char *poolname; in zpool_do_reguid() local [all …]
|
| /freebsd-12.1/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.1/cddl/contrib/opensolaris/cmd/zinject/ |
| H A D | translate.c | 316 int level, zinject_record_t *record, char *poolname, char *dataset) in translate_record() argument 358 (void) strcpy(poolname, object); in translate_record() 398 (void) strcpy(poolname, dataset); in translate_record() 399 if ((slash = strchr(poolname, '/')) != NULL) in translate_record()
|
| H A D | zinject.h | 58 int level, zinject_record_t *record, char *poolname, char *dataset);
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/ |
| H A D | libzfs_config.c | 352 zpool_skip_pool(const char *poolname) in zpool_skip_pool() argument 360 int namelen = strlen(poolname); in zpool_skip_pool() 373 if (len == namelen && 0 == strncmp(cur, poolname, len)) in zpool_skip_pool() 387 if (len == namelen && 0 == strncmp(cur, poolname, len)) { in zpool_skip_pool()
|
| H A D | libzfs_import.c | 1377 if (iarg->poolname != NULL) { in zpool_find_import_impl() 1383 strcmp(iarg->poolname, pname) == 0; in zpool_find_import_impl() 1459 char *poolname, uint64_t guid) in zpool_find_import_cached() argument 1471 verify(poolname == NULL || guid == 0); in zpool_find_import_cached() 1529 if (poolname != NULL && strcmp(poolname, name) != 0) in zpool_find_import_cached() 1579 if (import->poolname != NULL) { in name_or_guid_exists() 1584 if (strcmp(pool_name, import->poolname) == 0) in name_or_guid_exists() 1602 verify(import->poolname == NULL || import->guid == 0); in zpool_search_import() 1609 import->poolname, import->guid)); in zpool_search_import()
|
| H A D | libzfs_pool.c | 428 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() argument 553 if (strval[0] != '\0' && !bootfs_name_valid(poolname, in zpool_valid_proplist() 561 if ((zhp = zpool_open_canfail(hdl, poolname)) == NULL) { in zpool_valid_proplist() 563 "could not open pool '%s'"), poolname); in zpool_valid_proplist() 4415 char poolname[ZFS_MAX_DATASET_NAME_LEN]; local 4444 (void) strncpy(poolname, volname, p - volname); 4445 poolname[p - volname] = '\0'; 4448 if ((zhp = zpool_open(hdl, poolname)) == NULL) { 4450 "could not open pool '%s'"), poolname); 4458 "could not obtain vdev configuration for '%s'"), poolname);
|
| H A D | libzfs.h | 398 char *poolname; /* name of a pool to find */ member
|
| /freebsd-12.1/lib/libbe/ |
| H A D | be.c | 103 char *poolname, *pos; in libbe_init() local 107 poolname = pos = NULL; in libbe_init() 138 poolname = malloc(pnamelen + 1); in libbe_init() 139 if (poolname == NULL) in libbe_init() 142 strlcpy(poolname, lbh->root, pnamelen + 1); in libbe_init() 143 if ((lbh->active_phandle = zpool_open(lbh->lzh, poolname)) == NULL) in libbe_init() 145 free(poolname); in libbe_init() 146 poolname = NULL; in libbe_init() 166 free(poolname); in libbe_init()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | zcp.c | 967 zcp_pool_error(zcp_eval_arg_t *evalargs, const char *poolname) in zcp_pool_error() argument 972 poolname); in zcp_pool_error() 995 zcp_eval_open(zcp_eval_arg_t *evalargs, const char *poolname) in zcp_eval_open() argument 1007 error = dsl_pool_hold(poolname, FTAG, &dp); in zcp_eval_open() 1009 zcp_pool_error(evalargs, poolname); in zcp_eval_open() 1032 zcp_eval(const char *poolname, const char *program, boolean_t sync, in zcp_eval() argument 1145 err = dsl_sync_task(poolname, NULL, in zcp_eval() 1148 zcp_pool_error(&evalargs, poolname); in zcp_eval() 1150 zcp_eval_open(&evalargs, poolname); in zcp_eval()
|
| H A D | zfs_ioctl.c | 3435 poollen = strlen(poolname); in zfs_ioc_snapshot() 3492 char *poolname; in zfs_ioc_log_history() local 3501 poolname = tsd_get(zfs_allow_log_key); in zfs_ioc_log_history() 3503 error = spa_open(poolname, &spa, FTAG); in zfs_ioc_log_history() 3504 strfree(poolname); in zfs_ioc_log_history() 3673 poollen = strlen(poolname); in zfs_ioc_destroy_snaps() 3763 poollen = strlen(poolname); in zfs_ioc_destroy_bookmarks() 3831 return (spa_checkpoint(poolname)); in zfs_ioc_pool_checkpoint() 3905 error = spa_open(poolname, &spa, FTAG); in zfs_ioc_pool_initialize() 6980 char *poolname = arg; in zfs_allow_log_destroy() local [all …]
|
| H A D | zfs_vfsops.c | 1768 getpoolname(const char *osname, char *poolname) in getpoolname() argument 1776 (void) strcpy(poolname, osname); in getpoolname() 1780 (void) strncpy(poolname, osname, p - osname); in getpoolname() 1781 poolname[p - osname] = '\0'; in getpoolname()
|
| H A D | spa.c | 4733 char *poolname; local 4737 zpool_prop_to_name(ZPOOL_PROP_TNAME), &poolname) != 0) 4738 poolname = (char *)pool; 4744 if (spa_lookup(poolname) != NULL) { 4756 spa = spa_add(poolname, nvl, altroot); 4770 if (poolname != pool) 5596 char *poolname, *cachefile; local 5623 poolname, (longlong_t)policy.zlp_txg); 5625 zfs_dbgmsg("spa_tryimport: importing %s", poolname); 5644 poolname) == 0); [all …]
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs_core/common/ |
| H A D | libzfs_core.c | 1139 lzc_initialize(const char *poolname, pool_initialize_func_t cmd_type, argument 1147 error = lzc_ioctl(ZFS_IOC_POOL_INITIALIZE, poolname, args, errlist);
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zhack/ |
| H A D | zhack.c | 158 g_importargs.poolname = g_pool; in import_pool()
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zdb/ |
| H A D | zdb.c | 4178 char *poolname, *bogus_name; in import_checkpointed_state() local 4184 poolname = strndup(target, poolname_len); in import_checkpointed_state() 4186 poolname = target; in import_checkpointed_state() 4190 error = spa_get_stats(poolname, &cfg, NULL, 0); in import_checkpointed_state() 4194 poolname, error); in import_checkpointed_state() 4198 (void) asprintf(&bogus_name, "%s%s", poolname, BOGUS_SUFFIX); in import_checkpointed_state() 4211 if (target != poolname) in import_checkpointed_state() 4212 free(poolname); in import_checkpointed_state()
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zfs/ |
| H A D | zfs_main.c | 7228 char *progbuf, *filename, *poolname; in zfs_do_channel_program() local 7300 poolname = argv[0]; in zfs_do_channel_program() 7311 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) { in zfs_do_channel_program() 7313 poolname); in zfs_do_channel_program() 7356 ret = lzc_channel_program(poolname, progbuf, in zfs_do_channel_program() 7359 ret = lzc_channel_program_nosync(poolname, progbuf, in zfs_do_channel_program()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/common/zfs/ |
| H A D | zfs_ioctl_compat.c | 1194 char *poolname, *snapname; in zfs_ioctl_compat_innvl() local
|