Searched defs:poolname (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/lib/libzutil/common/
H A Dlibzutil.h66 const char *poolname; /* name of a pool to find */ member in struct:importargs
H A Dzutil_import.c1155 * poolname or guid (but not both) are provided by the caller when trying
1270 if (iarg->poolname != NULL) {
1276 strcmp(iarg->poolname, pname) == 0;
1336 * poolname or guid (but not both) are provided by the caller when trying
1341 const char *poolname, uint64_t guid)
1353 verify(poolname == NULL || guid == 0);
1411 if (poolname != NULL && strcmp(poolname, name) != 0)
1466 verify(import->poolname == NULL || import->guid == 0);
1470 import->poolname, impor
1340 zpool_find_import_cached(libpc_handle_t *hdl, const char *cachefile, const char *poolname, uint64_t guid) argument
[all...]
/illumos-gate/usr/src/cmd/pools/poolbind/
H A Dpoolbind.c211 char *poolname; local
269 if ((poolname = pool_get_binding(id)) == NULL) {
274 (void) printf("%ld\t%s\n", id, poolname);
275 free(poolname);
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c242 int level, zinject_record_t *record, char *poolname, char *dataset)
282 (void) strcpy(poolname, object);
322 (void) strcpy(poolname, dataset);
323 if ((slash = strchr(poolname, '/')) != NULL)
241 translate_record(err_type_t type, const char *object, const char *range, int level, zinject_record_t *record, char *poolname, char *dataset) argument
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dippool.c142 char *poolname = NULL, *s; local
180 poolname = optarg;
206 if (poolname == NULL) {
207 fprintf(stderr, "poolname not given with add/remove node\n");
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
384 char *kernel, *core, *poolname; local
[all...]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_config.c340 zpool_skip_pool(const char *poolname) argument
348 int namelen = strlen(poolname);
361 if (len == namelen && 0 == strncmp(cur, poolname, len))
375 if (len == namelen && 0 == strncmp(cur, poolname, len)) {
H A Dlibzfs_dataset.c2532 char *poolname = zhp->zpool_hdl->zpool_name; local
2546 error = lzc_channel_program_nosync(poolname, program,
H A Dlibzfs_pool.c432 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument
571 if (!bootfs_name_valid(poolname, strval)) {
578 if ((zhp = zpool_open_canfail(hdl, poolname)) == NULL) {
580 "could not open pool '%s'"), poolname);
4730 char poolname[ZFS_MAX_DATASET_NAME_LEN]; local
4759 (void) strncpy(poolname, volname, p - volname);
4760 poolname[p - volname] = '\0';
4763 if ((zhp = zpool_open(hdl, poolname)) == NULL) {
4765 "could not open pool '%s'"), poolname);
4773 "could not obtain vdev configuration for '%s'"), poolname);
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp.c954 zcp_pool_error(zcp_run_info_t *ri, const char *poolname) argument
959 poolname);
996 zcp_eval_open(zcp_run_info_t *ri, const char *poolname) argument
1007 error = dsl_pool_hold(poolname, FTAG, &dp);
1009 zcp_pool_error(ri, poolname);
1032 zcp_eval(const char *poolname, const char *program, boolean_t sync, argument
1150 err = dsl_sync_task_sig(poolname, NULL, zcp_eval_sync,
1153 zcp_pool_error(&runinfo, poolname);
1155 zcp_eval_open(&runinfo, poolname);
H A Ddsl_crypt.c2357 dsl_crypto_recv_raw(const char *poolname, uint64_t dsobj, uint64_t fromobj, argument
2368 return (dsl_sync_task(poolname, dsl_crypto_recv_key_check,
H A Dspa_misc.c2134 char *poolname = NULL; local
2146 &poolname);
2147 if (poolname == NULL)
2148 poolname = spa_name(spa);
2150 spa->spa_imp_kstat = kstat_create("zfs_import", 0, poolname,
H A Dzfs_ioctl.c3435 zfs_ioc_snapshot(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3443 if ((error = zfs_check_userprops(poolname, props)) != 0)
3447 zfs_earlier_version(poolname, SPA_VERSION_SNAP_PROPS))
3452 poollen = strlen(poolname);
3469 if (strncmp(name, poolname, poollen) != 0 ||
3497 char *poolname; local
3500 * The poolname in the ioctl is not set, we get it from the TSD,
3506 poolname = tsd_get(zfs_allow_log_key);
3508 error = spa_open(poolname, &spa, FTAG);
3509 strfree(poolname);
3612 zfs_ioc_destroy_snaps(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3643 zfs_ioc_bookmark(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3693 zfs_ioc_destroy_bookmarks(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3725 zfs_ioc_channel_program(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3764 zfs_ioc_pool_checkpoint(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3775 zfs_ioc_pool_discard_checkpoint(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3864 zfs_ioc_pool_initialize(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3936 zfs_ioc_pool_trim(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
7136 char *poolname = arg; local
[all...]
H A Dspa.c5075 char *poolname; local
5083 zpool_prop_to_name(ZPOOL_PROP_TNAME), &poolname) != 0)
5084 poolname = (char *)pool;
5090 if (spa_lookup(poolname) != NULL) {
5102 spa = spa_add(poolname, nvl, altroot);
5116 if (poolname != pool)
5753 char *poolname, *cachefile; local
5759 if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_POOL_NAME, &poolname))
5780 poolname, (longlong_t)policy.zlp_txg);
5782 zfs_dbgmsg("spa_tryimport: importing %s", poolname);
[all...]
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfs.c714 static char poolname[ZFS_MAXNAMELEN]; local
731 memcpy(poolname, np, sep - np);
732 poolname[sep - np] = '\0';
741 spa = spa_find_by_name(poolname);
860 static char poolname[ZFS_MAXNAMELEN]; local
874 memcpy(poolname, name, len);
875 poolname[len] = '\0';
877 spa = spa_find_by_name(poolname);
/illumos-gate/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c1189 lzc_initialize(const char *poolname, pool_initialize_func_t cmd_type, argument
1198 error = lzc_ioctl(ZFS_IOC_POOL_INITIALIZE, poolname, args, errlist);
1229 lzc_trim(const char *poolname, pool_trim_func_t cmd_type, uint64_t rate, argument
1240 error = lzc_ioctl(ZFS_IOC_POOL_TRIM, poolname, args, errlist);
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c744 char *poolname = NULL; local
793 if ((poolname = strtok(mntsp, "/")) == NULL) {
798 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) {
799 (void) fprintf(stderr, gettext("Cannot open %s\n"), poolname);
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlinkprop.c2022 char *poolname; local
2035 poolname = malloc(sizeof (mrp.mrp_pool));
2036 if (poolname == NULL)
2062 (void) strlcpy(poolname, *prop_val, sizeof (mrp.mrp_pool));
2063 vdp->vd_val = (uintptr_t)poolname;
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzoneadm.c2144 char poolname[MAXPATHLEN]; local
2153 error = zonecfg_get_pool(handle, poolname, sizeof (poolname));
2154 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) {
2170 "zone will not be bound to pool '%s'."), poolname);
2191 pool = pool_get_pool(poolconf, poolname);
2196 "using default pool"), poolname);
5355 char poolname[MAXPATHLEN]; local
5358 err2 = zonecfg_get_pool(handle, poolname, sizeof (poolname));
[all...]
/illumos-gate/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c1140 uint64_t lofi, char *poolname, char *psetname, uint_t sched, uint_t cputype,
1164 (void) strlcpy(zone->zsz_pool, poolname, sizeof (zone->zsz_pool));
2046 char poolname[ZS_POOLNAME_MAX]; local
2067 (void) strlcpy(poolname, "pool_default", sizeof (poolname));
2068 (void) strlcpy(psetname, "pset_default", sizeof (poolname));
2090 (void) strlcpy(poolname, (char *)string, sizeof (poolname));
2138 (void) strlcpy(pool, poolname, poollen);
2404 char poolname[ZS_POOLNAME_MA local
1134 zsd_mark_zone_found(zsd_ctl_t *ctl, zsd_zone_t *zone, uint64_t cpu_shares, uint64_t cpu_cap, uint64_t ram_cap, uint64_t locked_cap, uint64_t vm_cap, uint64_t processes_cap, uint64_t processes, uint64_t lwps_cap, uint64_t lwps, uint64_t shm_cap, uint64_t shm, uint64_t shmids_cap, uint64_t shmids, uint64_t semids_cap, uint64_t semids, uint64_t msgids_cap, uint64_t msgids, uint64_t lofi_cap, uint64_t lofi, char *poolname, char *psetname, uint_t sched, uint_t cputype, uint_t iptype) argument
[all...]
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c136 "\t\t[<poolname> [<object> ...]]\n"
142 "[-U <cache>]\n\t\t<poolname> [<vdev> [<metaslab> ...]]\n"
145 "\t\t<poolname> <vdev>:<offset>:<size>[:<flags>]\n"
148 "<poolname>\n\n",
4574 char *poolname, *bogus_name; local
4580 poolname = strndup(target, poolname_len);
4582 poolname = target;
4586 zdb_set_skip_mmp(poolname);
4587 error = spa_get_stats(poolname, &cfg, NULL, 0);
4591 poolname, erro
[all...]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_main.c685 char *poolname; local
745 poolname = argv[0];
750 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
755 poolname);
798 print_vdev_tree(zhp, poolname, poolnvroot, 0, "",
838 char *poolname; local
874 poolname = argv[0];
876 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
1105 char *poolname; local
1258 poolname
2651 const char *poolname; member in struct:target_exists_args
5506 char *poolname, *old_disk, *new_disk; local
5671 char *poolname, *path; local
5891 char *poolname; local
5969 char *poolname; local
6110 char *poolname; local
6430 char *poolname = argv[0]; local
6475 char *poolname; local
[all...]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac.c8123 * Given the poolname in mac_resource_props, find the cpupart
8128 * is returned. This avoids a 2nd lookup to set the poolname
8135 * is not available or poolname is blank
8252 * Look for links with the pool property set and the poolname
8330 char *poolname = NULL; local
8348 pool_get_name(pool, &poolname);
8349 (void) strlcpy(mpa->mpa_poolname, poolname,
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c4574 char poolname[MAXPATHLEN]; local
4581 error = zonecfg_get_pool(handle, poolname, sizeof (poolname));
4582 if (error == Z_NO_ENTRY || (error == Z_OK && strlen(poolname) == 0)) {
4614 pool = pool_get_pool(poolconf, poolname);
4623 if (pool_set_binding(poolname, P_ZONEID, zoneid) != PO_SUCCESS) {
4624 /* if bind fails, return poolname for the error msg */
4625 (void) strlcpy(pool_err, poolname, err_size);
4649 /* lookup the poolname in zonecfg */
4717 * Retrieve the specified pool's thread scheduling class. 'poolname' mus
4732 get_pool_sched_class(char *poolname, char *class, int clsize) argument
4781 char poolname[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_main.c7390 char *progbuf, *filename, *poolname; local
7462 poolname = argv[0];
7473 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) {
7475 poolname);
7518 ret = lzc_channel_program(poolname, progbuf,
7521 ret = lzc_channel_program_nosync(poolname, progbuf,

Completed in 138 milliseconds