/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ippool.c | 142 char *poolname = NULL, *s; local 180 poolname = optarg; 206 if (poolname == NULL) { 212 err = load_poolnode(0, poolname, &node, ioctl); 214 err = remove_poolnode(0, poolname, &node, ioctl); 224 char *poolname; local 231 poolname = NULL; 247 poolname = optarg; 283 if (poolname == NULL) { 289 strncpy(iph.iph_name, poolname, sizeof(iph.iph_name)); [all …]
|
H A D | ippool_y.y | 53 static char poolname[FR_GROUPLEN]; variable 188 number: IPT_NUM '=' YY_NUMBER { snprintf(poolname, FR_GROUPLEN, "%u", $3); 189 $$ = poolname;
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import.kshlib | 203 typeset poolname=$1 207 status=$(zpool status $poolname 2>&1) 210 log_note "zpool status $poolname failed: $status" 232 expected="$poolname $expected" 255 typeset poolname=$1 262 check_pool_config -q $poolname "$expectedconfig" 267 check_pool_config $poolname "$expectedconfig" 360 typeset poolname=$(echo "$line" | awk '{print $3}') 362 if [[ $poolname == $pool ]]; then
|
H A D | zpool_import_014_pos.ksh | 65 typeset poolname=$2 70 if [[ "name: '$poolname'" != "$labelname" ]]; then
|
/illumos-gate/usr/src/cmd/pools/poolbind/ |
H A D | poolbind.c | 211 char *poolname; in process_ids() local 269 if ((poolname = pool_get_binding(id)) == NULL) { in process_ids() 274 (void) printf("%ld\t%s\n", id, poolname); in process_ids() 275 free(poolname); in process_ids()
|
/illumos-gate/usr/src/cmd/zinject/ |
H A D | translate.c | 242 int level, zinject_record_t *record, char *poolname, char *dataset) in translate_record() argument 282 (void) strcpy(poolname, object); in translate_record() 322 (void) strcpy(poolname, dataset); in translate_record() 323 if ((slash = strchr(poolname, '/')) != NULL) in translate_record()
|
H A D | zinject.h | 58 int level, zinject_record_t *record, char *poolname, char *dataset);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/xattr/ |
H A D | xattr_012_pos.ksh | 53 poolname=$1 54 psize=$(zpool list -H -o allocated $poolname)
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_config.c | 340 zpool_skip_pool(const char *poolname) in zpool_skip_pool() argument 348 int namelen = strlen(poolname); in zpool_skip_pool() 361 if (len == namelen && 0 == strncmp(cur, poolname, len)) in zpool_skip_pool() 375 if (len == namelen && 0 == strncmp(cur, poolname, len)) { in zpool_skip_pool()
|
H A D | libzfs_pool.c | 445 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() argument 585 if (!bootfs_name_valid(poolname, strval)) { in zpool_valid_proplist() 592 if ((zhp = zpool_open_canfail(hdl, poolname)) == NULL) { in zpool_valid_proplist() 594 "could not open pool '%s'"), poolname); in zpool_valid_proplist() 4823 char poolname[ZFS_MAX_DATASET_NAME_LEN]; in zvol_check_dump_config() local 4852 (void) strncpy(poolname, volname, p - volname); in zvol_check_dump_config() 4853 poolname[p - volname] = '\0'; in zvol_check_dump_config() 4856 if ((zhp = zpool_open(hdl, poolname)) == NULL) { in zvol_check_dump_config() 4858 "could not open pool '%s'"), poolname); in zvol_check_dump_config() 4866 "could not obtain vdev configuration for '%s'"), poolname); in zvol_check_dump_config()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zcp.c | 953 zcp_pool_error(zcp_run_info_t *ri, const char *poolname) in zcp_pool_error() argument 958 poolname); in zcp_pool_error() 995 zcp_eval_open(zcp_run_info_t *ri, const char *poolname) in zcp_eval_open() argument 1006 error = dsl_pool_hold(poolname, FTAG, &dp); in zcp_eval_open() 1008 zcp_pool_error(ri, poolname); in zcp_eval_open() 1031 zcp_eval(const char *poolname, const char *program, boolean_t sync, in zcp_eval() argument 1149 err = dsl_sync_task_sig(poolname, NULL, zcp_eval_sync, in zcp_eval() 1152 zcp_pool_error(&runinfo, poolname); in zcp_eval() 1154 zcp_eval_open(&runinfo, poolname); in zcp_eval()
|
H A D | zfs_ioctl.c | 3481 zfs_ioc_snapshot(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) in zfs_ioc_snapshot() argument 3489 if ((error = zfs_check_userprops(poolname, props)) != 0) in zfs_ioc_snapshot() 3493 zfs_earlier_version(poolname, SPA_VERSION_SNAP_PROPS)) in zfs_ioc_snapshot() 3497 poollen = strlen(poolname); in zfs_ioc_snapshot() 3514 if (strncmp(name, poolname, poollen) != 0 || in zfs_ioc_snapshot() 3546 char *poolname; in zfs_ioc_log_history() local 3555 poolname = tsd_get(zfs_allow_log_key); in zfs_ioc_log_history() 3557 error = spa_open(poolname, &spa, FTAG); in zfs_ioc_log_history() 3558 strfree(poolname); in zfs_ioc_log_history() 3715 zfs_ioc_destroy_snaps(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) in zfs_ioc_destroy_snaps() argument [all …]
|
H A D | spa_misc.c | 2147 char *poolname = NULL; in spa_import_progress_add() local 2159 &poolname); in spa_import_progress_add() 2160 if (poolname == NULL) in spa_import_progress_add() 2161 poolname = spa_name(spa); in spa_import_progress_add() 2163 spa->spa_imp_kstat = kstat_create("zfs_import", 0, poolname, in spa_import_progress_add()
|
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_main.c | 687 char *poolname; in zpool_do_add() local 747 poolname = argv[0]; in zpool_do_add() 752 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) in zpool_do_add() 757 poolname); in zpool_do_add() 800 print_vdev_tree(zhp, poolname, poolnvroot, 0, "", in zpool_do_add() 840 char *poolname; in zpool_do_remove() local 876 poolname = argv[0]; in zpool_do_remove() 878 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) in zpool_do_remove() 1108 char *poolname; in zpool_do_create() local 1261 poolname = argv[0]; in zpool_do_create() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/perf/scripts/ |
H A D | io.d | 71 self->poolname = stringof(self->os->os_spa->spa_name); 76 / self->poolname == $$1 /
|
/illumos-gate/usr/src/lib/libzutil/common/ |
H A D | zutil_import.c | 1286 if (iarg->poolname != NULL) { in zpool_find_import_impl() 1292 strcmp(iarg->poolname, pname) == 0; in zpool_find_import_impl() 1357 const char *poolname, uint64_t guid) in zpool_find_import_cached() argument 1369 verify(poolname == NULL || guid == 0); in zpool_find_import_cached() 1427 if (poolname != NULL && strcmp(poolname, name) != 0) in zpool_find_import_cached() 1482 verify(import->poolname == NULL || import->guid == 0); in zpool_search_import() 1486 import->poolname, import->guid); in zpool_search_import()
|
H A D | libzutil.h | 66 const char *poolname; /* name of a pool to find */ member
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | zfs.c | 1560 static char poolname[ZFS_MAXNAMELEN]; in zfs_parsedev() local 1577 memcpy(poolname, np, sep - np); in zfs_parsedev() 1578 poolname[sep - np] = '\0'; in zfs_parsedev() 1587 spa = spa_find_by_name(poolname); in zfs_parsedev() 1707 static char poolname[ZFS_MAXNAMELEN]; in zfs_list() local 1721 memcpy(poolname, name, len); in zfs_list() 1722 poolname[len] = '\0'; in zfs_list() 1724 spa = spa_find_by_name(poolname); in zfs_list()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | add_nested_replacing_spare.ksh | 86 zpool status | nawk -v poolname="$TESTPOOL" -v type="$type" 'BEGIN {s=""}
|
/illumos-gate/usr/src/lib/libzfs_core/common/ |
H A D | libzfs_core.c | 1255 lzc_initialize(const char *poolname, pool_initialize_func_t cmd_type, in lzc_initialize() argument 1264 error = lzc_ioctl(ZFS_IOC_POOL_INITIALIZE, poolname, args, errlist); in lzc_initialize() 1295 lzc_trim(const char *poolname, pool_trim_func_t cmd_type, uint64_t rate, in lzc_trim() argument 1306 error = lzc_ioctl(ZFS_IOC_POOL_TRIM, poolname, args, errlist); in lzc_trim()
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 743 char *poolname = NULL; in get_zfs_bootfs_arg() local 792 if ((poolname = strtok(mntsp, "/")) == NULL) { in get_zfs_bootfs_arg() 797 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) { in get_zfs_bootfs_arg() 798 (void) fprintf(stderr, gettext("Cannot open %s\n"), poolname); in get_zfs_bootfs_arg()
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | dsl_crypt.h | 203 int dsl_crypto_recv_raw(const char *poolname, uint64_t dsobj, uint64_t fromobj,
|
/illumos-gate/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 1138 uint64_t lofi, char *poolname, char *psetname, uint_t sched, uint_t cputype, in zsd_mark_zone_found() argument 1162 (void) strlcpy(zone->zsz_pool, poolname, sizeof (zone->zsz_pool)); in zsd_mark_zone_found() 2044 char poolname[ZS_POOLNAME_MAX]; in zsd_get_zone_pool_pset() local 2065 (void) strlcpy(poolname, "pool_default", sizeof (poolname)); in zsd_get_zone_pool_pset() 2066 (void) strlcpy(psetname, "pset_default", sizeof (poolname)); in zsd_get_zone_pool_pset() 2088 (void) strlcpy(poolname, (char *)string, sizeof (poolname)); in zsd_get_zone_pool_pset() 2136 (void) strlcpy(pool, poolname, poollen); in zsd_get_zone_pool_pset() 2402 char poolname[ZS_POOLNAME_MAX]; in zsd_refresh_zones() local 2446 zsd_get_zone_pool_pset(ctl, zone, poolname, sizeof (poolname), in zsd_refresh_zones() 2459 semids, msgids_cap, msgids, lofi_cap, lofi, poolname, in zsd_refresh_zones()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 2144 char poolname[MAXPATHLEN]; in verify_pool() local 2153 error = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in verify_pool() 2154 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) { in verify_pool() 2170 "zone will not be bound to pool '%s'."), poolname); in verify_pool() 2191 pool = pool_get_pool(poolconf, poolname); in verify_pool() 2196 "using default pool"), poolname); in verify_pool() 5355 char poolname[MAXPATHLEN]; in pool_configured() local 5358 err2 = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in pool_configured() 5361 (err2 == Z_NO_ENTRY || (err2 == Z_OK && strlen(poolname) == 0))) in pool_configured()
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 4575 char poolname[MAXPATHLEN]; in zonecfg_bind_pool() local 4582 error = zonecfg_get_pool(handle, poolname, sizeof (poolname)); in zonecfg_bind_pool() 4583 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) { in zonecfg_bind_pool() 4615 pool = pool_get_pool(poolconf, poolname); in zonecfg_bind_pool() 4624 if (pool_set_binding(poolname, P_ZONEID, zoneid) != PO_SUCCESS) { in zonecfg_bind_pool() 4626 (void) strlcpy(pool_err, poolname, err_size); in zonecfg_bind_pool() 4733 get_pool_sched_class(char *poolname, char *class, int clsize) in get_pool_sched_class() argument 4754 if ((pool = pool_get_pool(poolconf, poolname)) == NULL) { in get_pool_sched_class() 4782 char poolname[MAXPATHLEN]; in zonecfg_get_dflt_sched_class() local 4784 if (zonecfg_get_pool(handle, poolname, sizeof (poolname)) == Z_OK) { in zonecfg_get_dflt_sched_class() [all …]
|