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

/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/lib/libzfs/common/
H A Dlibzfs_config.c352 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 Dlibzfs_import.c1101 * poolname or guid (but not both) are provided by the caller when trying
1216 if (iarg->poolname != NULL) {
1222 strcmp(iarg->poolname, pname) == 0;
1293 * poolname or guid (but not both) are provided by the caller when trying
1298 char *poolname, uint64_t guid)
1310 verify(poolname == NULL || guid == 0);
1368 if (poolname != NULL && strcmp(poolname, name) != 0)
1418 if (import->poolname != NULL) {
1423 if (strcmp(pool_name, import->poolname)
1297 zpool_find_import_cached(libzfs_handle_t *hdl, const char *cachefile, char *poolname, uint64_t guid) argument
[all...]
H A Dlibzfs.h427 char *poolname; /* name of a pool to find */ member in struct:importargs
431 int unique : 1; /* does 'poolname' already exist? */
H A Dlibzfs_dataset.c2535 char *poolname = zhp->zpool_hdl->zpool_name; local
2549 error = lzc_channel_program_nosync(poolname, program,
H A Dlibzfs_pool.c431 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, argument
570 if (!bootfs_name_valid(poolname, strval)) {
577 if ((zhp = zpool_open_canfail(hdl, poolname)) == NULL) {
579 "could not open pool '%s'"), poolname);
4754 char poolname[ZFS_MAX_DATASET_NAME_LEN]; local
4783 (void) strncpy(poolname, volname, p - volname);
4784 poolname[p - volname] = '\0';
4787 if ((zhp = zpool_open(hdl, poolname)) == NULL) {
4789 "could not open pool '%s'"), poolname);
4797 "could not obtain vdev configuration for '%s'"), poolname);
[all...]
/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/cmd/zinject/
H A Dtranslate.c333 int level, zinject_record_t *record, char *poolname, char *dataset)
375 (void) strcpy(poolname, object);
415 (void) strcpy(poolname, dataset);
416 if ((slash = strchr(poolname, '/')) != NULL)
332 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/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.c2354 dsl_crypto_recv_raw(const char *poolname, uint64_t dsobj, uint64_t fromobj, argument
2365 return (dsl_sync_task(poolname, dsl_crypto_recv_key_check,
H A Dzfs_ioctl.c3438 zfs_ioc_snapshot(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3446 if ((error = zfs_check_userprops(poolname, props)) != 0)
3450 zfs_earlier_version(poolname, SPA_VERSION_SNAP_PROPS))
3455 poollen = strlen(poolname);
3472 if (strncmp(name, poolname, poollen) != 0 ||
3500 char *poolname; local
3503 * The poolname in the ioctl is not set, we get it from the TSD,
3509 poolname = tsd_get(zfs_allow_log_key);
3511 error = spa_open(poolname, &spa, FTAG);
3512 strfree(poolname);
3615 zfs_ioc_destroy_snaps(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3646 zfs_ioc_bookmark(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3696 zfs_ioc_destroy_bookmarks(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3728 zfs_ioc_channel_program(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3767 zfs_ioc_pool_checkpoint(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3778 zfs_ioc_pool_discard_checkpoint(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3867 zfs_ioc_pool_initialize(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
3939 zfs_ioc_pool_trim(const char *poolname, nvlist_t *innvl, nvlist_t *outnvl) argument
7139 char *poolname = arg; local
[all...]
H A Dspa.c5048 char *poolname; local
5056 zpool_prop_to_name(ZPOOL_PROP_TNAME), &poolname) != 0)
5057 poolname = (char *)pool;
5063 if (spa_lookup(poolname) != NULL) {
5075 spa = spa_add(poolname, nvl, altroot);
5089 if (poolname != pool)
5726 char *poolname, *cachefile; local
5732 if (nvlist_lookup_string(tryconfig, ZPOOL_CONFIG_POOL_NAME, &poolname))
5753 poolname, (longlong_t)policy.zlp_txg);
5755 zfs_dbgmsg("spa_tryimport: importing %s", poolname);
[all...]
/illumos-gate/usr/src/cmd/halt/
H A Dhalt.c731 char *poolname = NULL; local
780 if ((poolname = strtok(mntsp, "/")) == NULL) {
785 if ((zpoolp = zpool_open(g_zfs, poolname)) == NULL) {
786 (void) fprintf(stderr, gettext("Cannot open %s\n"), 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/boot/lib/libstand/zfs/
H A Dzfs.c676 static char poolname[ZFS_MAXNAMELEN]; local
693 memcpy(poolname, np, sep - np);
694 poolname[sep - np] = '\0';
703 spa = spa_find_by_name(poolname);
817 static char poolname[ZFS_MAXNAMELEN]; local
831 memcpy(poolname, name, len);
832 poolname[len] = '\0';
834 spa = spa_find_by_name(poolname);
872 static char poolname[ZFS_MAXNAMELEN], *dsname, *root; local
897 memcpy(poolname, nam
[all...]
/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/zpool/
H A Dzpool_main.c599 char *poolname; local
659 poolname = argv[0];
664 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
669 poolname);
712 print_vdev_tree(zhp, poolname, poolnvroot, 0, "",
752 char *poolname; local
788 poolname = argv[0];
790 if ((zhp = zpool_open(g_zfs, poolname)) == NULL)
1019 char *poolname; local
1172 poolname
4083 char *poolname, *old_disk, *new_disk; local
4248 char *poolname, *path; local
4468 char *poolname; local
4546 char *poolname; local
4687 char *poolname; local
5007 char *poolname = argv[0]; local
5052 char *poolname; local
[all...]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac.c7656 * Given the poolname in mac_resource_props, find the cpupart
7661 * is returned. This avoids a 2nd lookup to set the poolname
7668 * is not available or poolname is blank
7785 * Look for links with the pool property set and the poolname
7863 char *poolname = NULL; local
7881 pool_get_name(pool, &poolname);
7882 (void) strlcpy(mpa->mpa_poolname, poolname,
/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.c142 "\t\t[<poolname> [<object> ...]]\n"
148 "[-U <cache>]\n\t\t<poolname> [<vdev> [<metaslab> ...]]\n"
151 "\t\t<poolname> <vdev>:<offset>:<size>[:<flags>]\n"
154 "<poolname>\n\n",
4579 char *poolname, *bogus_name; local
4585 poolname = strndup(target, poolname_len);
4587 poolname = target;
4591 zdb_set_skip_mmp(poolname);
4592 error = spa_get_stats(poolname, &cfg, NULL, 0);
4596 poolname, erro
[all...]
/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.c7365 char *progbuf, *filename, *poolname; local
7437 poolname = argv[0];
7448 if ((zhp = zpool_open(g_zfs, poolname)) == NULL) {
7450 poolname);
7493 ret = lzc_channel_program(poolname, progbuf,
7496 ret = lzc_channel_program_nosync(poolname, progbuf,

Completed in 403 milliseconds